aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-01-07 20:34:12 +0000
committerChad Rosier <mcrosier@apple.com>2013-01-07 20:34:12 +0000
commitdeb1bab60824c01d85e3fd8bc219c64636fe5380 (patch)
tree8f064c59e2127e393c9a952b983de388b49f4595 /lib/MC
parent3cc42205600b2d3865efd1585d79663c41e048f1 (diff)
downloadexternal_llvm-deb1bab60824c01d85e3fd8bc219c64636fe5380.zip
external_llvm-deb1bab60824c01d85e3fd8bc219c64636fe5380.tar.gz
external_llvm-deb1bab60824c01d85e3fd8bc219c64636fe5380.tar.bz2
[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
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 7eddd34..8a22ed5 100644
--- 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.