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 | 65353d5f3a4b2d5695002a833c550be329dd0bb1 (patch) | |
tree | 986cfec13184ae7f9d764fc592c1edf756ad9085 /lib | |
parent | 83cf1ec765d05256a25c741820c0118a5148bdf4 (diff) | |
download | external_llvm-65353d5f3a4b2d5695002a833c550be329dd0bb1.zip external_llvm-65353d5f3a4b2d5695002a833c550be329dd0bb1.tar.gz external_llvm-65353d5f3a4b2d5695002a833c550be329dd0bb1.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
Diffstat (limited to 'lib')
-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); } } |