summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-10-25 12:49:50 +0000
committerTim Northover <tnorthover@apple.com>2013-10-25 12:49:50 +0000
commit1744d0ad83ae211042a5b18d287978569ec63cb1 (patch)
tree5b0328bc11ff4e552c53722f3073347d43129986 /llvm/lib/MC/MCParser/AsmParser.cpp
parent2eac89868c0ce5b2fd45fcf1207b4ffab9efbcdd (diff)
downloadbcm5719-llvm-1744d0ad83ae211042a5b18d287978569ec63cb1.tar.gz
bcm5719-llvm-1744d0ad83ae211042a5b18d287978569ec63cb1.zip
ARM: allow .thumb_func to be separated from symbol definition
When assembling, a .thumb_func directive is supposed to be applicable to the next symbol definition, even if there are intervening directives. We were racing ahead to try and find it, and this commit should fix the issue. Patch by Gabor Ballabas llvm-svn: 193403
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 1fb8480b057..a91bd93105b 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -1262,6 +1262,8 @@ bool AsmParser::parseStatement(ParseStatementInfo &Info) {
MCGenDwarfLabelEntry::Make(Sym, &getStreamer(), getSourceManager(),
IDLoc);
+ getTargetParser().onLabelParsed(Sym);
+
// Consume any end of statement token, if present, to avoid spurious
// AddBlankLine calls().
if (Lexer.is(AsmToken::EndOfStatement)) {
OpenPOWER on IntegriCloud