Fix the FIXME, nuke the JIT specific forceCompilationOf method.
authorChris Lattner <sabre@nondot.org>
Mon, 22 Nov 2004 21:54:35 +0000 (21:54 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Nov 2004 21:54:35 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18131 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineCodeEmitter.h
lib/CodeGen/MachineCodeEmitter.cpp
lib/ExecutionEngine/JIT/JITEmitter.cpp

index 1faac7121701c5eebf4f4d918b062f1d3d3ea63f..562d4c695e005bdf893a0c562e942805a6a6a1d5 100644 (file)
@@ -94,13 +94,6 @@ public:
   //
   virtual uint64_t getConstantPoolEntryAddress(unsigned Index) = 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) = 0;
-  
   /// createDebugEmitter - Return a dynamically allocated machine
   /// code emitter, which just prints the opcodes and fields out the cout.  This
   /// can be used for debugging users of the MachineCodeEmitter interface.
index 3e955b02835228da30102ea16a41b868fd162496..248b06a999bc5c52692bda76c3a00648f8a41fce 100644 (file)
@@ -54,15 +54,6 @@ namespace {
     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 {
@@ -160,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);
-    }
   };
 }
 
index be81614a023d015e89c00ee5fcc4fbe3c1721ce8..50ec2e11d254d9e2bdb94cc10e2b69953cecfb1f 100644 (file)
@@ -252,13 +252,6 @@ namespace {
     virtual uint64_t getCurrentPCOffset();
     virtual uint64_t getConstantPoolEntryAddress(unsigned Entry);
 
-    // 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);
-
   private:
     void *getPointerToGlobal(GlobalValue *GV, void *Reference, bool NoNeedStub);
   };
@@ -417,10 +410,6 @@ uint64_t Emitter::getCurrentPCOffset() {
   return (intptr_t)CurByte-(intptr_t)CurBlock;
 }
 
-uint64_t Emitter::forceCompilationOf(Function *F) {
-  return (intptr_t)TheJIT->getPointerToFunction(F);
-}
-
 // getPointerToNamedFunction - This function is used as a global wrapper to
 // JIT::getPointerToNamedFunction for the purpose of resolving symbols when
 // bugpoint is debugging the JIT. In that scenario, we are loading an .so and