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

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 12 18:24:03 PST 2003


Changes in directory llvm/lib/CodeGen:

MachineCodeEmitter.cpp updated: 1.2 -> 1.3

---
Log message:

Add support for global address by string and constant pool values


---
Diffs of the changes:

Index: llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff -u llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.2 llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.3
--- llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.2	Wed Dec  4 00:44:41 2002
+++ llvm/lib/CodeGen/MachineCodeEmitter.cpp	Sun Jan 12 18:22:37 2003
@@ -28,8 +28,17 @@
     void emitPCRelativeDisp(Value *V) {
       std::cout << "<disp %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
     }
-    void emitGlobalAddress(GlobalValue *V) {
+    void emitGlobalAddress(GlobalValue *V, bool isPCRelative) {
       std::cout << "<addr %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
+    }
+    void emitGlobalAddress(const std::string &Name, bool isPCRelative) {
+      std::cout << "<addr %" << Name << ": 0xXX 0xXX 0xXX 0xXX> ";
+    }
+
+    void emitFunctionConstantValueAddress(unsigned ConstantNum, int Offset) {
+      std::cout << "<addr const#" << ConstantNum;
+      if (Offset) std::cout << " + " << Offset;
+      std::cout << "> ";
     }
   };
 }





More information about the llvm-commits mailing list