diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-11-10 20:48:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-11-10 20:48:53 +0000 |
commit | 42ba6286b60a26658e7e4c2ee25e263c93bf8232 (patch) | |
tree | 26cc699fbede20d6085d477c81c03cb4dd0a73ee /llvm/lib | |
parent | 3a9d77f4c18873c87ecd5067307025544ff89076 (diff) | |
download | bcm5719-llvm-42ba6286b60a26658e7e4c2ee25e263c93bf8232.tar.gz bcm5719-llvm-42ba6286b60a26658e7e4c2ee25e263c93bf8232.zip |
ARM .thumb_func directive for quoted symbol names.
Use the getIdentifier() method of the token, not getString(), otherwise
we keep the quotes as part of the symbol name, which we don't want.
rdar://10428015
llvm-svn: 144315
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 83e7aac2fbf..f142e686df1 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -4966,17 +4966,17 @@ bool ARMAsmParser::parseDirectiveThumbFunc(SMLoc L) { const AsmToken &Tok = Parser.getTok(); if (Tok.isNot(AsmToken::Identifier) && Tok.isNot(AsmToken::String)) return Error(L, "unexpected token in .thumb_func directive"); - Name = Tok.getString(); + Name = Tok.getIdentifier(); Parser.Lex(); // Consume the identifier token. } - if (getLexer().isNot(AsmToken::EndOfStatement)) + if (getLexer().isNot(AsmToken::EndOfStatement)) return Error(L, "unexpected token in directive"); Parser.Lex(); // FIXME: assuming function name will be the line following .thumb_func if (!isMachO) { - Name = Parser.getTok().getString(); + Name = Parser.getTok().getIdentifier(); } // Mark symbol as a thumb symbol. |