projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f831cb
)
simplify "EmitExternalGlobal": it is only used to output a
author
Chris Lattner
<sabre@nondot.org>
Wed, 15 Jul 2009 01:16:38 +0000
(
01:16
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 15 Jul 2009 01:16:38 +0000
(
01:16
+0000)
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
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index 565f31d4a568e6bd7a00c1318da71699d1995c68..b8b1516fc0b90acf7ac7d5081c6c82e98d76150b 100644
(file)
--- 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);
}
}