diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-15 01:16:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-15 01:16:38 +0000 |
commit | 0f6c8f25aa96f765f19b555e4d610d5a7557ee95 (patch) | |
tree | 986cfec13184ae7f9d764fc592c1edf756ad9085 | |
parent | 8f831cbf0d9d1eb7de08d50b5d55ef84fdacba2e (diff) | |
download | external_llvm-0f6c8f25aa96f765f19b555e4d610d5a7557ee95.zip external_llvm-0f6c8f25aa96f765f19b555e4d610d5a7557ee95.tar.gz external_llvm-0f6c8f25aa96f765f19b555e4d610d5a7557ee95.tar.bz2 |
simplify "EmitExternalGlobal": it is only used to output a
reference to the personality function for a module, and
those are all added to the GVStubs array by looping
over MMI->getPersonalities()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75720 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index 565f31d..b8b1516 100644 --- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -416,11 +416,6 @@ void PPCAsmPrinter::EmitExternalGlobal(const GlobalVariable *GV) { if (TM.getRelocationModel() != Reloc::Static) { Name = Mang->getMangledName(GV, "$non_lazy_ptr", true); - - if (GV->hasHiddenVisibility()) - HiddenGVStubs[Mang->getMangledName(GV)] = Name; - else - GVStubs[Mang->getMangledName(GV)] = Name; } else { Name = Mang->getMangledName(GV); } @@ -1062,7 +1057,7 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) { E = Personalities.end(); I != E; ++I) { if (*I) GVStubs[Mang->getMangledName(*I)] = - Mang->getMangledName(*I, "$non_lazy_ptr", true);; + Mang->getMangledName(*I, "$non_lazy_ptr", true); } } |