Use live out sets for return values instead of imp_defs, which is cleaner and faster.
[oota-llvm.git] / lib / CodeGen / MachineCodeEmitter.cpp
index c64366cded07ca0e41fb0c51fbde8075b0fcbbee..248b06a999bc5c52692bda76c3a00648f8a41fce 100644 (file)
@@ -51,20 +51,9 @@ namespace {
       std::cout << "<relocation> ";
     }
 
-    uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
-    uint64_t getGlobalValueAddress(const char *Name) { return 0; }
     uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
     uint64_t getCurrentPCValue() { return 0; }
     uint64_t getCurrentPCOffset() { return 0; }
-
-    // forceCompilationOf - Force the compilation of the specified function, and
-    // return its address, because we REALLY need the address now.
-    //
-    // FIXME: This is JIT specific!
-    //
-    virtual uint64_t forceCompilationOf(Function *F) {
-      return 0;
-    }
   };
 
   class FilePrinterEmitter : public MachineCodeEmitter {
@@ -150,12 +139,6 @@ namespace {
     void emitWordAt(unsigned W, unsigned *Ptr) {
       MCE.emitWordAt(W, Ptr);
     }
-    uint64_t getGlobalValueAddress(GlobalValue *V) {
-      return MCE.getGlobalValueAddress(V);
-    }
-    uint64_t getGlobalValueAddress(const char *Name) {
-      return MCE.getGlobalValueAddress(Name);
-    }
     uint64_t getConstantPoolEntryAddress(unsigned Num) {
       return MCE.getConstantPoolEntryAddress(Num);
     }
@@ -168,15 +151,6 @@ namespace {
     void addRelocation(const MachineRelocation &MR) {
       return MCE.addRelocation(MR);
     }
-
-    // forceCompilationOf - Force the compilation of the specified function, and
-    // return its address, because we REALLY need the address now.
-    //
-    // FIXME: This is JIT specific!
-    //
-    virtual uint64_t forceCompilationOf(Function *F) {
-      return MCE.forceCompilationOf(F);
-    }
   };
 }