mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-23 16:30:00 +00:00
[ms-inline asm] Make sure the NullStreamParser doesn't try to emit labels when
parsing MS-style inline assembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3cc4220560
commit
deb1bab608
@ -1214,6 +1214,7 @@ bool AsmParser::ParseStatement(ParseStatementInfo &Info) {
|
|||||||
return Error(IDLoc, "invalid symbol redefinition");
|
return Error(IDLoc, "invalid symbol redefinition");
|
||||||
|
|
||||||
// Emit the label.
|
// Emit the label.
|
||||||
|
if (!ParsingInlineAsm)
|
||||||
Out.EmitLabel(Sym);
|
Out.EmitLabel(Sym);
|
||||||
|
|
||||||
// If we are generating dwarf for assembly source files then gather the
|
// If we are generating dwarf for assembly source files then gather the
|
||||||
|
Loading…
Reference in New Issue
Block a user