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 | dc17ab2bf0c4d325b87ac8130004ab11f3f7106d (patch) | |
tree | be7e150433234c251ce3557f0dc162c705965e46 /include/llvm/ExecutionEngine | |
parent | 37bcda3de96a9c41dc1aa05615ca3df869119026 (diff) | |
download | external_llvm-dc17ab2bf0c4d325b87ac8130004ab11f3f7106d.zip external_llvm-dc17ab2bf0c4d325b87ac8130004ab11f3f7106d.tar.gz external_llvm-dc17ab2bf0c4d325b87ac8130004ab11f3f7106d.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')
-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 //===--------------------------------------------------------------------===// |