diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineCodeEmitter.cpp | 18 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Emitter.cpp | 11 | 
2 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp index 3e955b02835..248b06a999b 100644 --- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp +++ b/llvm/lib/CodeGen/MachineCodeEmitter.cpp @@ -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); -    }    };  } diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp index be81614a023..50ec2e11d25 100644 --- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp @@ -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  | 

