Enable jitting with a known memory size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nicolas Geoffray
2008-04-18 20:59:31 +00:00
parent 37bcda3de9
commit dc17ab2bf0
4 changed files with 560 additions and 6 deletions

View File

@@ -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
//===--------------------------------------------------------------------===//