Remove some dead vars and some useless namespacification
authorChris Lattner <sabre@nondot.org>
Mon, 22 Nov 2004 21:42:40 +0000 (21:42 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Nov 2004 21:42:40 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18126 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9CodeEmitter.cpp

index 89e0a5db862c54e899fa6e95d2aebd3acab5387e..59edf6e02999251aaf538bac9925810f1af1b464 100644 (file)
@@ -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