Make sure that llvm-ml uses MASM integer lexing when in --as-lex mode

This commit is contained in:
Eric Astor 2020-09-02 16:03:01 -04:00
parent afe8ca8673
commit 5b4744b2c5
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ static std::unique_ptr<ToolOutputFile> GetOutputStream(StringRef Path) {
static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, raw_ostream &OS) {
AsmLexer Lexer(MAI);
Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer());
Lexer.setLexMasmIntegers(true);
bool Error = false;
while (Lexer.Lex().isNot(AsmToken::Eof)) {