forked from OSchip/llvm-project
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:
parent
9ffa4e2193
commit
8da3ce3bfd
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue