diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-04-18 20:59:31 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-04-18 20:59:31 +0000 |
commit | 688479740ba49f116496ec81879eb4e379c86bf7 (patch) | |
tree | be7e150433234c251ce3557f0dc162c705965e46 /include/llvm/ExecutionEngine/JITMemoryManager.h | |
parent | f45437511403930c7ad473fda878da4fab1c0d9a (diff) | |
download | external_llvm-688479740ba49f116496ec81879eb4e379c86bf7.zip external_llvm-688479740ba49f116496ec81879eb4e379c86bf7.tar.gz external_llvm-688479740ba49f116496ec81879eb4e379c86bf7.tar.bz2 |
Enable jitting with a known memory size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine/JITMemoryManager.h')
-rw-r--r-- | include/llvm/ExecutionEngine/JITMemoryManager.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/JITMemoryManager.h b/include/llvm/ExecutionEngine/JITMemoryManager.h index 0977d56..53900f4 100644 --- a/include/llvm/ExecutionEngine/JITMemoryManager.h +++ b/include/llvm/ExecutionEngine/JITMemoryManager.h @@ -26,8 +26,9 @@ namespace llvm { class JITMemoryManager { protected: bool HasGOT; + bool SizeRequired; public: - JITMemoryManager() : HasGOT(false) {} + JITMemoryManager() : HasGOT(false), SizeRequired(false) {} virtual ~JITMemoryManager(); /// CreateDefaultMemManager - This is used to create the default @@ -53,6 +54,12 @@ public: /// return a pointer to its base. virtual unsigned char *getGOTBase() const = 0; + /// RequireSize - If the memory manager requires to know the size of the + /// objects to be emitted + bool RequiresSize() const { + return SizeRequired; + } + //===--------------------------------------------------------------------===// // Main Allocation Functions //===--------------------------------------------------------------------===// |