Print out direct global references
authorChris Lattner <sabre@nondot.org>
Wed, 4 Dec 2002 06:44:41 +0000 (06:44 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Dec 2002 06:44:41 +0000 (06:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeEmitter.cpp

index e2b4908c74207e7ac0ad05064577ff167d344149..d28fdeebbccfbe7bd99b237ba677e8dd8060cbcc 100644 (file)
@@ -26,7 +26,10 @@ namespace {
       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> ";
     }
   };
 }