[ms] [llvm-ml] Standardize blocking of lexical substitution
authorEric Astor <epastor@google.com>
Fri, 2 Jul 2021 18:17:15 +0000 (14:17 -0400)
committerEric Astor <epastor@google.com>
Fri, 2 Jul 2021 18:17:37 +0000 (14:17 -0400)
commit678211de6d5f75c22beb72ec1203b1e857ddebf3
tree7b8a3f8dce6d9176a2ee62eaadf4d541847cad94
parentcdf7b661c24d037461492544996925dd5257911b
[ms] [llvm-ml] Standardize blocking of lexical substitution

In MASM, the ifdef family of directives treats its argument literally, without expanding it as a text macro. Add support for this, and also replace the special handling that was previously used for echo.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D104196
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/command_line_defines.asm