summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2004-11-27 04:45:11 +0000
committerNate Begeman <natebegeman@mac.com>2004-11-27 04:45:11 +0000
commit43123c9f7a1a52dbc198452f0b4086c02b634210 (patch)
tree4c56e3b0e1466310c2c6220c48b64cf881b61ead /llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
parenteeaa29c377e9d22154ec712293d7c3d061bf140b (diff)
downloadbcm5719-llvm-43123c9f7a1a52dbc198452f0b4086c02b634210.tar.gz
bcm5719-llvm-43123c9f7a1a52dbc198452f0b4086c02b634210.zip
Remove the ISel->AsmPrinter link via the TargetMachine that was put in
place to help bring up the PowerPC back end on Darwin. This code is no longer serves any purpose now that the AsmPrinter does the right thing all the time printing GlobalValues. --Cruft. llvm-svn: 18267
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
index f4e36bab2e8..93cfb2d8751 100644
--- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
@@ -360,15 +360,14 @@ void PowerPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
// wary however not to output $stub for external functions whose addresses
// are taken. Those should be emitted as $non_lazy_ptr below.
Function *F = dyn_cast<Function>(GV);
- if (F && F->isExternal() && IsCallOp && getTM().CalledFunctions.count(F)) {
+ if (F && IsCallOp && F->isExternal()) {
FnStubs.insert(Name);
O << "L" << Name << "$stub";
return;
}
// External or weakly linked global variables need non-lazily-resolved stubs
- if ((GV->isExternal() || GV->hasWeakLinkage() || GV->hasLinkOnceLinkage())
- && getTM().AddressTaken.count(GV)) {
+ if ((GV->isExternal() || GV->hasWeakLinkage() || GV->hasLinkOnceLinkage())){
if (GV->hasLinkOnceLinkage())
LinkOnceStubs.insert(Name);
else
OpenPOWER on IntegriCloud