1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

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 d56113a35e
commit 6cecc11ec7

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)) {