diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-11-22 21:42:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-11-22 21:42:40 +0000 |
| commit | 54e1b22ea320f1b086c137c81e0fc05995b4b526 (patch) | |
| tree | 75e344c461503b740eff9ae707fadeab556f4cae /llvm/lib/Target/SparcV9 | |
| parent | 80ad8871e7741c5acd1ad96bd3ffa0b7bb67e150 (diff) | |
| download | bcm5719-llvm-54e1b22ea320f1b086c137c81e0fc05995b4b526.tar.gz bcm5719-llvm-54e1b22ea320f1b086c137c81e0fc05995b4b526.zip | |
Remove some dead vars and some useless namespacification
llvm-svn: 18126
Diffstat (limited to 'llvm/lib/Target/SparcV9')
| -rw-r--r-- | llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index 89e0a5db862..59edf6e0299 100644 --- a/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -143,13 +143,8 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI, rv = (CI->getRawValue() - MCE.getCurrentPCValue()) / 4; } else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { unsigned Reloc; - bool isLocal = false; if (MI.getOpcode() == V9::CALL) { Reloc = V9::reloc_pcrel_call; -#if 0 // FIXME: No need to emit stubs for internal functions. - if (!GV->hasExternalLinkage() && isa<Function>(GV)) - isLocal = true; -#endif } else if (MI.getOpcode() == V9::SETHI) { if (MO.isHiBits64()) Reloc = V9::reloc_sethi_hh; @@ -168,8 +163,7 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI, assert(0 && "Unknown relocation!"); } - MCE.addRelocation(MachineRelocation(MCE.getCurrentPCOffset(), Reloc, GV, - 0, isLocal)); + MCE.addRelocation(MachineRelocation(MCE.getCurrentPCOffset(), Reloc, GV)); rv = 0; } else { std::cerr << "ERROR: PC relative disp unhandled:" << MO << "\n"; @@ -306,8 +300,5 @@ void SparcV9CodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) { } } - -namespace llvm { #include "SparcV9CodeEmitter.inc" -} // End llvm namespace |

