diff options
author | Eric Christopher <echristo@apple.com> | 2010-05-17 02:13:02 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-05-17 02:13:02 +0000 |
commit | 68b1bbe66ab2ffb2dceb10af943ab1fe001fb537 (patch) | |
tree | edbb4f28feb7319b07920f30b1f0b8c7f7e693c0 /llvm/lib/MC/MCParser/AsmParser.cpp | |
parent | 8044c989d1f9199598ec1b6fb1ba7d99c6b2ca2a (diff) | |
download | bcm5719-llvm-68b1bbe66ab2ffb2dceb10af943ab1fe001fb537.tar.gz bcm5719-llvm-68b1bbe66ab2ffb2dceb10af943ab1fe001fb537.zip |
Assume that we'll handle mangling the symbols earlier and just put the
symbol to the file as we have it. Simplifies out tbss handling.
llvm-svn: 103928
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 18977de8adb..e5af357de34 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -1436,13 +1436,9 @@ bool AsmParser::ParseDirectiveDarwinTBSS() { StringRef Name; if (ParseIdentifier(Name)) return TokError("expected identifier in directive"); - - // Demangle the name output. The trailing characters are guaranteed to be - // $tlv$init so just strip that off. - StringRef DemName = Name.substr(0, Name.size() - strlen("$tlv$init")); - + // Handle the identifier as the key symbol. - MCSymbol *Sym = CreateSymbol(DemName); + MCSymbol *Sym = CreateSymbol(Name); if (Lexer.isNot(AsmToken::Comma)) return TokError("unexpected token in directive"); |