diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-23 17:11:13 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-23 17:11:13 +0000 |
commit | 4aaa9c603a03e639f3daffee012813766d1d361e (patch) | |
tree | 09232428b2b5827bc8190cc6f25182251908df9a /llvm/lib/CodeGen/MachineCodeEmitter.cpp | |
parent | 1ed0cdbd04636fecde09922b5160d1334be5a480 (diff) | |
download | bcm5719-llvm-4aaa9c603a03e639f3daffee012813766d1d361e.tar.gz bcm5719-llvm-4aaa9c603a03e639f3daffee012813766d1d361e.zip |
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.)
llvm-svn: 13117
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCodeEmitter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp index 680a8d1ad32..fdfd3922378 100644 --- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp +++ b/llvm/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); } |