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

Chris Lattner lattner at cs.uiuc.edu
Wed Dec 4 00:45:08 PST 2002


Changes in directory llvm/lib/CodeGen:

MachineCodeEmitter.cpp updated: 1.1 -> 1.2

---
Log message:

Print out direct global references


---
Diffs of the changes:

Index: llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff -u llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.1 llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.2
--- llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.1	Tue Dec  3 14:56:42 2002
+++ llvm/lib/CodeGen/MachineCodeEmitter.cpp	Wed Dec  4 00:44:41 2002
@@ -26,7 +26,10 @@
       std::cout << "0x" << std::hex << (unsigned int)B << std::dec << " ";
     }
     void emitPCRelativeDisp(Value *V) {
-      std::cout << "<" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
+      std::cout << "<disp %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
+    }
+    void emitGlobalAddress(GlobalValue *V) {
+      std::cout << "<addr %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
     }
   };
 }





More information about the llvm-commits mailing list