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

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 19 19:44:52 PST 2004



Changes in directory llvm/lib/CodeGen:

MachineCodeEmitter.cpp updated: 1.18 -> 1.19
---
Log message:

Add getCurrentPCOffset() and addRelocation() methods.



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

Index: llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff -u llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.18 llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.19
--- llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.18	Fri Nov 19 14:56:46 2004
+++ llvm/lib/CodeGen/MachineCodeEmitter.cpp	Fri Nov 19 21:44:39 2004
@@ -47,10 +47,15 @@
                 << (void*) Ptr << ") ";
     }
 
+    void addRelocation(const MachineRelocation &MR) {
+      std::cout << "<relocation> ";
+    }
+
     uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
     uint64_t getGlobalValueAddress(const char *Name) { return 0; }
     uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
     uint64_t getCurrentPCValue() { return 0; }
+    uint64_t getCurrentPCOffset() { return 0; }
 
     // forceCompilationOf - Force the compilation of the specified function, and
     // return its address, because we REALLY need the address now.
@@ -157,6 +162,13 @@
     uint64_t getCurrentPCValue() {
       return MCE.getCurrentPCValue();
     }
+    uint64_t getCurrentPCOffset() {
+      return MCE.getCurrentPCOffset();
+    }
+    void addRelocation(const MachineRelocation &MR) {
+      return MCE.addRelocation(MR);
+    }
+
     // forceCompilationOf - Force the compilation of the specified function, and
     // return its address, because we REALLY need the address now.
     //






More information about the llvm-commits mailing list