summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-15 01:16:38 +0000
committerChris Lattner <sabre@nondot.org>2009-07-15 01:16:38 +0000
commit8da3ce3bfd6d66b50a77e19ab2429b977d218128 (patch)
treef26a8011e22e21dcd23e91644ce9a4d008c8f433 /llvm
parent9ffa4e2193719014b3412ad4457919f8e3bbcfb1 (diff)
downloadbcm5719-llvm-8da3ce3bfd6d66b50a77e19ab2429b977d218128.tar.gz
bcm5719-llvm-8da3ce3bfd6d66b50a77e19ab2429b977d218128.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index 565f31d4a56..b8b1516fc0b 100644
--- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud