[llvm-commits] CVS: llvm/lib/CodeGen/MachineCodeEmitter.cpp ELFWriter.cpp

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



Changes in directory llvm/lib/CodeGen:

MachineCodeEmitter.cpp updated: 1.23 -> 1.24
ELFWriter.cpp updated: 1.13 -> 1.14
---
Log message:

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

---
Diffs of the changes:  (+12 -0)

 ELFWriter.cpp          |    5 +++++
 MachineCodeEmitter.cpp |    7 +++++++
 2 files changed, 12 insertions(+)


Index: llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff -u llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.23 llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.24
--- llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.23	Thu Apr 21 17:33:33 2005
+++ llvm/lib/CodeGen/MachineCodeEmitter.cpp	Thu Jul 28 13:13:59 2005
@@ -51,6 +51,9 @@
       std::cout << "<relocation> ";
     }
 
+    virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment)
+    { return 0; }
+
     uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
     uint64_t getCurrentPCValue() { return 0; }
     uint64_t getCurrentPCOffset() { return 0; }
@@ -142,6 +145,10 @@
     uint64_t getConstantPoolEntryAddress(unsigned Num) {
       return MCE.getConstantPoolEntryAddress(Num);
     }
+
+    virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment)
+    { return MCE.allocateGlobal(size, alignment); }
+
     uint64_t getCurrentPCValue() {
       return MCE.getCurrentPCValue();
     }


Index: llvm/lib/CodeGen/ELFWriter.cpp
diff -u llvm/lib/CodeGen/ELFWriter.cpp:1.13 llvm/lib/CodeGen/ELFWriter.cpp:1.14
--- llvm/lib/CodeGen/ELFWriter.cpp:1.13	Wed Jul 27 01:12:33 2005
+++ llvm/lib/CodeGen/ELFWriter.cpp	Thu Jul 28 13:13:59 2005
@@ -85,6 +85,11 @@
       return 0;
     }
 
+    virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment) {
+      assert(0 && "Globals not implemented yet!");
+      return 0;
+    }
+
     /// JIT SPECIFIC FUNCTIONS - DO NOT IMPLEMENT THESE HERE!
     void startFunctionStub(unsigned StubSize) {
       assert(0 && "JIT specific function called!");






More information about the llvm-commits mailing list