summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineCodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-04 06:44:41 +0000
committerChris Lattner <sabre@nondot.org>2002-12-04 06:44:41 +0000
commitb72d221d619211335780b90f43bb129cf15fe0e7 (patch)
treebfa6b2f1aa07e0c1786c12bc3c8a35e3ec28608e /lib/CodeGen/MachineCodeEmitter.cpp
parent64ccc73593370f064081552c73aa814cb2287675 (diff)
downloadllvm-b72d221d619211335780b90f43bb129cf15fe0e7.tar.gz
llvm-b72d221d619211335780b90f43bb129cf15fe0e7.tar.bz2
llvm-b72d221d619211335780b90f43bb129cf15fe0e7.tar.xz
Print out direct global references
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index e2b4908c74..d28fdeebbc 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -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> ";
}
};
}