forked from OSchip/llvm-project
Make sure that llvm-ml uses MASM integer lexing when in --as-lex mode
This commit is contained in:
parent
afe8ca8673
commit
5b4744b2c5
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue