diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:08:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:08:41 +0000 |
| commit | 5632fabd0a6e1f30e9cbbd6c2b6d3dce6dcc656a (patch) | |
| tree | 41139ea036200a44e0739afc58707eba3414bbbd /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | fe0e2534a5b2b89019a3d0ed2b55b0acb5ae4498 (diff) | |
| download | external_llvm-5632fabd0a6e1f30e9cbbd6c2b6d3dce6dcc656a.zip external_llvm-5632fabd0a6e1f30e9cbbd6c2b6d3dce6dcc656a.tar.gz external_llvm-5632fabd0a6e1f30e9cbbd6c2b6d3dce6dcc656a.tar.bz2 | |
eliminate the horrid AsmPrinter::getGlobalLinkName method, inlining
it into all of its call sites and simplifying them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 745696c..a457421 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -509,20 +509,10 @@ void AsmPrinter::EmitXXStructorList(Constant *List) { } } -/// getGlobalLinkName - Returns the asm/link name of of the specified -/// global variable. Should be overridden by each target asm printer to -/// generate the appropriate value. -const std::string &AsmPrinter::getGlobalLinkName(const GlobalVariable *GV, - std::string &LinkName) const { - LinkName += Mang->getMangledName(GV); - return LinkName; -} - /// EmitExternalGlobal - Emit the external reference to a global variable. /// Should be overridden if an indirect reference should be used. void AsmPrinter::EmitExternalGlobal(const GlobalVariable *GV) { - std::string GLN; - O << getGlobalLinkName(GV, GLN); + O << Mang->getMangledName(GV); } |
