From: Chris Lattner Date: Mon, 22 Nov 2004 21:42:40 +0000 (+0000) Subject: Remove some dead vars and some useless namespacification X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2eeda6ed8f46f07f461d3ee13ec2ecc882ebc263;p=oota-llvm.git Remove some dead vars and some useless namespacification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18126 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index 89e0a5db862..59edf6e0299 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/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(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(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