projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc4220
)
[ms-inline asm] Make sure the NullStreamParser doesn't try to emit labels when
author
Chad Rosier
<mcrosier@apple.com>
Mon, 7 Jan 2013 20:34:12 +0000
(20:34 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Mon, 7 Jan 2013 20:34:12 +0000
(20:34 +0000)
parsing MS-style inline assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171784
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCParser/AsmParser.cpp
b/lib/MC/MCParser/AsmParser.cpp
index 7eddd341f5adb27e57cb6da77f9287e042b939bb..8a22ed59498d69680d1a714d7e50280acf9a0fa3 100644
(file)
--- a/
lib/MC/MCParser/AsmParser.cpp
+++ b/
lib/MC/MCParser/AsmParser.cpp
@@
-1214,7
+1214,8
@@
bool AsmParser::ParseStatement(ParseStatementInfo &Info) {
return Error(IDLoc, "invalid symbol redefinition");
// Emit the label.
- Out.EmitLabel(Sym);
+ if (!ParsingInlineAsm)
+ Out.EmitLabel(Sym);
// If we are generating dwarf for assembly source files then gather the
// info to make a dwarf label entry for this label if needed.