mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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:
@@ -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
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user