summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2012-10-02 21:18:39 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2012-10-02 21:18:39 +0000
commitadc70568f9ddb5323775ca79c9ddd531af3f4d98 (patch)
treea54dc069e1c40146b736b3d622068715d9a7447c /llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
parentf01b02b7cf10bcb8c875cd7f610b0e846025f4e4 (diff)
downloadbcm5719-llvm-adc70568f9ddb5323775ca79c9ddd531af3f4d98.tar.gz
bcm5719-llvm-adc70568f9ddb5323775ca79c9ddd531af3f4d98.zip
Clean-up of memory buffer and object ownership model in MCJIT
llvm-svn: 165053
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.h')
-rw-r--r--llvm/lib/ExecutionEngine/MCJIT/MCJIT.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
index d5c5d775745..b9ff06e701f 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
+++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
@@ -13,11 +13,11 @@
#include "llvm/PassManager.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/RuntimeDyld.h"
-#include "llvm/ADT/SmallVector.h"
-#include "llvm/Support/raw_ostream.h"
namespace llvm {
+class ObjectImage;
+
// FIXME: This makes all kinds of horrible assumptions for the time being,
// like only having one module, not needing to worry about multi-threading,
// blah blah. Purely in get-it-up-and-limping mode for now.
@@ -34,10 +34,7 @@ class MCJIT : public ExecutionEngine {
// FIXME: Add support for multiple modules
bool isCompiled;
Module *M;
-
- // FIXME: Move these to a single container which manages JITed objects
- SmallVector<char, 4096> Buffer; // Working buffer into which we JIT.
- raw_svector_ostream OS;
+ OwningPtr<ObjectImage> LoadedObject;
public:
~MCJIT();
OpenPOWER on IntegriCloud