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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice! lg with clang-tidy addressed.
llvm/lib/MC/MCParser/MasmParser.cpp | ||
---|---|---|
495–497 | nit: Consider instead: enum ExpandKind { ExpandMacros, DoNotExpandMacros }; const AsmToken &Lex(ExpandKind); Then the call sites are much easier to read. (Also something similar for the other method below taking a bool below) | |
1127 | Why is this a pointer? You never set it to anything else and it can't be null -- make it a reference? | |
1143 | no else after return…oh, clang-tidy already said that. Do what clang-tidy says :) (also above) |
nit: Consider instead:
Then the call sites are much easier to read. (Also something similar for the other method below taking a bool below)