[ms] [llvm-ml] Support REPEAT/FOR/WHILE macro-like directives
authorEric Astor <epastor@google.com>
Mon, 9 Nov 2020 16:49:41 +0000 (11:49 -0500)
committerEric Astor <epastor@google.com>
Mon, 9 Nov 2020 18:21:18 +0000 (13:21 -0500)
commit3a71f551942358dc055a9208436f08b7133e9608
tree3f932fccda54c05ad0d9b76ac5c008e4bab12891
parent2c481f128cad043498dc404bc7f6d6128bb7c223
[ms] [llvm-ml] Support REPEAT/FOR/WHILE macro-like directives

Support MASM's REPEAT, FOR, FORC, and WHILE macro-like directives.

Also adds support for macro argument substitution inside quoted strings, and additional testing for macro directives.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D89732
llvm/lib/MC/MCParser/COFFMasmParser.cpp
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/macro.test
llvm/test/tools/llvm-ml/repeat_directives.test [new file with mode: 0644]