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()

llvm-svn: 75720
This commit is contained in:
Chris Lattner 2009-07-15 01:16:38 +00:00
parent 9ffa4e2193
commit 8da3ce3bfd
1 changed files with 1 additions and 6 deletions

View File

@ -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);
}
}