Skip to content

Commit

Permalink
[ms] [llvm-ml] Support REPEAT/FOR/WHILE macro-like directives
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ericastor committed Nov 9, 2020
1 parent 2c481f1 commit 3a71f55
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 138 deletions.
8 changes: 0 additions & 8 deletions llvm/lib/MC/MCParser/COFFMasmParser.cpp
Expand Up @@ -97,7 +97,6 @@ class COFFMasmParser : public MCAsmParserExtension {
// align
// even
// mmword
// real10
// tbyte
// xmmword
// ymmword
Expand All @@ -119,11 +118,8 @@ class COFFMasmParser : public MCAsmParserExtension {
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>("title");

// Macro directives
// endm
// exitm
// goto
// local
// macro
// purge

// Miscellaneous directives
Expand Down Expand Up @@ -158,11 +154,7 @@ class COFFMasmParser : public MCAsmParserExtension {
addDirectiveHandler<&COFFMasmParser::IgnoreDirective>(".xmm");

// Repeat blocks directives
// for
// forc
// goto
// repeat
// while

// Scope directives
// comm
Expand Down

0 comments on commit 3a71f55

Please sign in to comment.