[llvm-commits] CVS: llvm/lib/CodeGen/MachineCodeEmitter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Apr 23 12:12:07 PDT 2004
Changes in directory llvm/lib/CodeGen:
MachineCodeEmitter.cpp updated: 1.15 -> 1.16
---
Log message:
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.)
---
Diffs of the changes: (+7 -0)
Index: llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff -u llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.15 llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.16
--- llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.15 Mon Feb 23 12:38:20 2004
+++ llvm/lib/CodeGen/MachineCodeEmitter.cpp Fri Apr 23 12:11:13 2004
@@ -40,6 +40,10 @@
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; }
@@ -135,6 +139,9 @@
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);
More information about the llvm-commits
mailing list