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 89e0a5d..59edf6e 100644
--- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
+++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
@@ -143,13 +143,8 @@
       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 @@
         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 @@
     }
 }
 
-
-namespace llvm {
 #include "SparcV9CodeEmitter.inc"
-} // End llvm namespace