From dc17ab2bf0c4d325b87ac8130004ab11f3f7106d Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 18 Apr 2008 20:59:31 +0000 Subject: Enable jitting with a known memory size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49924 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/JITMemoryManager.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/llvm/ExecutionEngine') diff --git a/include/llvm/ExecutionEngine/JITMemoryManager.h b/include/llvm/ExecutionEngine/JITMemoryManager.h index 0977d5640f..53900f45ef 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 //===--------------------------------------------------------------------===// -- cgit v1.2.3