Print out direct global references


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4906 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index e2b4908..d28fdee 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -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> ";
     }
   };
 }