[ms] [llvm-ml] Implement the statement expansion operator
authorEric Astor <epastor@google.com>
Mon, 30 Nov 2020 16:35:24 +0000 (11:35 -0500)
committerEric Astor <epastor@google.com>
Mon, 30 Nov 2020 19:33:24 +0000 (14:33 -0500)
commitabef659a45fff4147f8f0ffd1d0f6600185e4a4e
tree479deed0460b4debfd04cd7b56db7b45834f7c75
parent40dc535b5afffb1d309e44ca636219c1b8a6873b
[ms] [llvm-ml] Implement the statement expansion operator

If prefaced with a %, expand text macros and macro functions in any statement.

Also, prevent expanding text macros in the message of an ECHO directive unless expanded explicitly by the statement expansion operator.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D89740
llvm/include/llvm/MC/MCAsmMacro.h
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/expansion.test [new file with mode: 0644]