diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-25 03:47:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-25 03:47:41 +0000 |
commit | 06fd5bf4ea122960f0435449c2391ea4fe1ea2ca (patch) | |
tree | c845deb6b60daaa789215860c7caac5b9b7f4cdb /lib/ExecutionEngine/MCJIT/MCJIT.h | |
parent | 7467e5ed1c04887c8d7bdb760df346f518003f07 (diff) | |
download | llvm-06fd5bf4ea122960f0435449c2391ea4fe1ea2ca.tar.gz llvm-06fd5bf4ea122960f0435449c2391ea4fe1ea2ca.tar.bz2 llvm-06fd5bf4ea122960f0435449c2391ea4fe1ea2ca.tar.xz |
Revert "Adding object caching support to MCJIT"
This reverts commit 07f03923137a91e3cca5d7fc075a22f8c9baf33a.
Looks like it broke the valgrind bot:
http://lab.llvm.org:8011/builders/llvm-x86_64-linux-vg_leak/builds/649
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/MCJIT/MCJIT.h')
-rw-r--r-- | lib/ExecutionEngine/MCJIT/MCJIT.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.h b/lib/ExecutionEngine/MCJIT/MCJIT.h index 8c4bf6e1db..283a8e5281 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.h +++ b/lib/ExecutionEngine/MCJIT/MCJIT.h @@ -12,7 +12,6 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" -#include "llvm/ExecutionEngine/ObjectCache.h" #include "llvm/ExecutionEngine/RuntimeDyld.h" #include "llvm/PassManager.h" @@ -35,23 +34,16 @@ class MCJIT : public ExecutionEngine { SmallVector<JITEventListener*, 2> EventListeners; // FIXME: Add support for multiple modules - bool IsLoaded; + bool isCompiled; Module *M; OwningPtr<ObjectImage> LoadedObject; - // An optional ObjectCache to be notified of compiled objects and used to - // perform lookup of pre-compiled code to avoid re-compilation. - ObjectCache *ObjCache; - public: ~MCJIT(); /// @name ExecutionEngine interface implementation /// @{ - /// Sets the object manager that MCJIT should use to avoid compilation. - virtual void setObjectCache(ObjectCache *manager); - virtual void finalizeObject(); virtual void *getPointerToBasicBlock(BasicBlock *BB); @@ -110,9 +102,7 @@ protected: /// this function call is expected to be the contained module. The module /// is passed as a parameter here to prepare for multiple module support in /// the future. - ObjectBufferStream* emitObject(Module *M); - - void loadObject(Module *M); + void emitObject(Module *M); void NotifyObjectEmitted(const ObjectImage& Obj); void NotifyFreeingObject(const ObjectImage& Obj); |