[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeEmitter.h

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Jul 28 11:14:11 PDT 2005



Changes in directory llvm/include/llvm/CodeGen:

MachineCodeEmitter.h updated: 1.27 -> 1.28
---
Log message:

new is not a valid default anywhere, so make this pure virtual

---
Diffs of the changes:  (+2 -5)

 MachineCodeEmitter.h |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.27 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.28
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.27	Thu Jul 28 07:44:13 2005
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h	Thu Jul 28 13:13:59 2005
@@ -94,11 +94,8 @@
   //
   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






More information about the llvm-commits mailing list