Переглянути джерело

decodetree: Prefix extract function names with decode_function

This makes it easier to name Formats within multiple decode files.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Richard Henderson 6 роки тому
батько
коміт
71ecf79bf4
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      scripts/decodetree.py

+ 2 - 1
scripts/decodetree.py

@@ -312,7 +312,8 @@ class Format(General):
     """Class representing an instruction format"""
 
     def extract_name(self):
-        return 'extract_' + self.name
+        global decode_function
+        return decode_function + '_extract_' + self.name
 
     def output_extract(self):
         output('static void ', self.extract_name(), '(',