From: Chris Lattner Date: Wed, 15 Jul 2009 01:16:38 +0000 (+0000) Subject: simplify "EmitExternalGlobal": it is only used to output a X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0f6c8f25aa96f765f19b555e4d610d5a7557ee95;p=oota-llvm.git 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 --- diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index 565f31d4a56..b8b1516fc0b 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); } }