diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-02 16:25:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-02 16:25:47 +0000 |
commit | cce5873de356227917238cf7b5dc01168082463a (patch) | |
tree | afdaaa82b341bdaf40a5e1c675db6d91ec5ccc9e /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 4f9dd99c285d19a664ee69085887797a397a07bc (diff) | |
download | llvm-cce5873de356227917238cf7b5dc01168082463a.tar.gz llvm-cce5873de356227917238cf7b5dc01168082463a.tar.bz2 llvm-cce5873de356227917238cf7b5dc01168082463a.tar.xz |
Move getSymbolWithGlobalValueBase to TargetLoweringObjectFile.
This allows it to be used in TargetLoweringObjectFileImpl.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 6273b4ad68..1bc840c6bc 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -2033,12 +2033,9 @@ MCSymbol *AsmPrinter::GetJTSetSymbol(unsigned UID, unsigned MBBID) const { Twine(UID) + "_set_" + Twine(MBBID)); } -MCSymbol *AsmPrinter::GetSymbolWithGlobalValueBase(const GlobalValue *GV, +MCSymbol *AsmPrinter::getSymbolWithGlobalValueBase(const GlobalValue *GV, StringRef Suffix) const { - SmallString<60> NameStr; - Mang->getNameWithPrefix(NameStr, GV, true); - NameStr.append(Suffix.begin(), Suffix.end()); - return OutContext.GetOrCreateSymbol(NameStr.str()); + return getObjFileLowering().getSymbolWithGlobalValueBase(*Mang, GV, Suffix); } /// GetExternalSymbolSymbol - Return the MCSymbol for the specified |