summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-04-23 17:11:13 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-04-23 17:11:13 +0000
commitda8246bb71a8ade10d603fa11f1465bcd0e2fc84 (patch)
tree95a2c82a79e95f94ab0cd8f0932ba096e3967c44 /lib
parentfd1bb8b97466b1d2dadbf2e5767809cc56815d47 (diff)
downloadexternal_llvm-da8246bb71a8ade10d603fa11f1465bcd0e2fc84.zip
external_llvm-da8246bb71a8ade10d603fa11f1465bcd0e2fc84.tar.gz
external_llvm-da8246bb71a8ade10d603fa11f1465bcd0e2fc84.tar.bz2
Implement emitWordAt() for the debug emitter and the file printer emitter. (I
am not so sure about the file printer emitter, but the debug emitter change should be harmless.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index 680a8d1..fdfd392 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -40,6 +40,10 @@ namespace {
void emitWord(unsigned W) {
std::cout << "0x" << std::hex << W << std::dec << " ";
}
+ void emitWordAt(unsigned W, unsigned *Ptr) {
+ std::cout << "0x" << std::hex << W << std::dec << " (at "
+ << (void*) Ptr << ") ";
+ }
uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
uint64_t getGlobalValueAddress(const std::string &Name) { return 0; }
@@ -136,6 +140,9 @@ namespace {
void emitWord(unsigned W) {
MCE.emitWord(W);
}
+ void emitWordAt(unsigned W, unsigned *Ptr) {
+ MCE.emitWordAt(W, Ptr);
+ }
uint64_t getGlobalValueAddress(GlobalValue *V) {
return MCE.getGlobalValueAddress(V);
}