aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-02-28 14:45:50 -0800
committerRichard Henderson <richard.henderson@linaro.org>2019-03-12 09:46:58 -0700
commit71ecf79bf40db20237a3cfc01cc407cc4cad8817 (patch)
treeeb757e996615338e55d37664e7cbf2777a12ba40
parent263ac638a76a72841e3f513b14c515680703e084 (diff)
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>
-rwxr-xr-xscripts/decodetree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index f6f58e2fec..ac158b42d0 100755
--- a/scripts/decodetree.py
+++ b/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(), '(',