aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit57f055f2f2e7f099f2bd6769ba0e23d9eef16c16 (patch)
tree581d77ed57f2b6d676e4f9429659a6de9b7224db /llvm/lib/CodeGen/MachineCodeEmitter.cpp
parent418b77ef4b97e61920d597a04deddbd025cdedf9 (diff)
downloadllvm-57f055f2f2e7f099f2bd6769ba0e23d9eef16c16.zip
llvm-57f055f2f2e7f099f2bd6769ba0e23d9eef16c16.tar.gz
llvm-57f055f2f2e7f099f2bd6769ba0e23d9eef16c16.tar.bz2
Print out direct global references
llvm-svn: 4906
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCodeEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp
index e2b4908..d28fdee 100644
--- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/llvm/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> ";
}
};
}