提交 71ecf79b 编写于 作者: R Richard Henderson

decodetree: Prefix extract function names with decode_function

This makes it easier to name Formats within multiple decode files.
Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
上级 263ac638
...@@ -312,7 +312,8 @@ class Format(General): ...@@ -312,7 +312,8 @@ class Format(General):
"""Class representing an instruction format""" """Class representing an instruction format"""
def extract_name(self): def extract_name(self):
return 'extract_' + self.name global decode_function
return decode_function + '_extract_' + self.name
def output_extract(self): def output_extract(self):
output('static void ', self.extract_name(), '(', output('static void ', self.extract_name(), '(',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册