diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-12 18:55:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-12 18:55:20 +0000 |
commit | be3242b523f3c141a10cec9eaa4c733dfed5a663 (patch) | |
tree | d61d78b3a5c7c6474565b870e7f47b912e40aa34 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 45ec3f8944a29755426f5448d60c1f59730ce1e6 (diff) | |
download | bcm5719-llvm-be3242b523f3c141a10cec9eaa4c733dfed5a663.tar.gz bcm5719-llvm-be3242b523f3c141a10cec9eaa4c733dfed5a663.zip |
finally give Mangler a getSymbol method, which returns an MCSymbol
for a global instead of messing around with string buffers.
llvm-svn: 98366
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c5bf848edcb..0a283931eda 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1632,12 +1632,7 @@ MCSymbol *AsmPrinter::GetJTSetSymbol(unsigned UID, unsigned MBBID) const { /// GetGlobalValueSymbol - Return the MCSymbol for the specified global /// value. MCSymbol *AsmPrinter::GetGlobalValueSymbol(const GlobalValue *GV) const { - SmallString<60> NameStr; - Mang->getNameWithPrefix(NameStr, GV, false); - - if (!GV->hasPrivateLinkage()) - return OutContext.GetOrCreateSymbol(NameStr.str()); - return OutContext.GetOrCreateTemporarySymbol(NameStr.str()); + return Mang->getSymbol(GV); } /// GetSymbolWithGlobalValueBase - Return the MCSymbol for a symbol with |