From c8102434ba8703ff3bd18d8f53675c2de3830f97 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Wed, 16 Mar 2016 16:01:55 -0700 Subject: [PATCH] BaseTools ConvertMasmToNasm: Support ASM_PFX in .asm files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao --- BaseTools/Scripts/ConvertMasmToNasm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BaseTools/Scripts/ConvertMasmToNasm.py b/BaseTools/Scripts/ConvertMasmToNasm.py index 6a0d27dadb..8b08a88557 100755 --- a/BaseTools/Scripts/ConvertMasmToNasm.py +++ b/BaseTools/Scripts/ConvertMasmToNasm.py @@ -285,7 +285,9 @@ class ConvertAsmFile(CommonUtils): self.oldAsmEmptyLineCount = 0 procDeclRe = re.compile(r''' - ([\w@][\w@0-9]*) \s+ + (?: ASM_PFX \s* [(] \s* )? + ([\w@][\w@0-9]*) \s* + [)]? \s+ PROC (?: \s+ NEAR | FAR )? (?: \s+ C )? -- 2.39.2