diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r-- | include/llvm/CodeGen/MachineCodeEmitter.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h index 59c5b614af..f5ee2e6237 100644 --- a/include/llvm/CodeGen/MachineCodeEmitter.h +++ b/include/llvm/CodeGen/MachineCodeEmitter.h @@ -94,11 +94,8 @@ public: // virtual uint64_t getConstantPoolEntryAddress(unsigned Index) = 0; - // allocateGlobal - Allocate some space for a global variable. This is - // used by the JIT to allocate space in the global variable region. - virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment) { - return new unsigned char[(size_t)size]; - } + // allocateGlobal - Allocate some space for a global variable. + virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment) = 0; /// createDebugEmitter - Return a dynamically allocated machine /// code emitter, which just prints the opcodes and fields out the cout. This |