mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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
This commit is contained in:
parent
fd1bb8b974
commit
da8246bb71
@ -40,6 +40,10 @@ namespace {
|
|||||||
void emitWord(unsigned W) {
|
void emitWord(unsigned W) {
|
||||||
std::cout << "0x" << std::hex << W << std::dec << " ";
|
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(GlobalValue *V) { return 0; }
|
||||||
uint64_t getGlobalValueAddress(const std::string &Name) { return 0; }
|
uint64_t getGlobalValueAddress(const std::string &Name) { return 0; }
|
||||||
@ -136,6 +140,9 @@ namespace {
|
|||||||
void emitWord(unsigned W) {
|
void emitWord(unsigned W) {
|
||||||
MCE.emitWord(W);
|
MCE.emitWord(W);
|
||||||
}
|
}
|
||||||
|
void emitWordAt(unsigned W, unsigned *Ptr) {
|
||||||
|
MCE.emitWordAt(W, Ptr);
|
||||||
|
}
|
||||||
uint64_t getGlobalValueAddress(GlobalValue *V) {
|
uint64_t getGlobalValueAddress(GlobalValue *V) {
|
||||||
return MCE.getGlobalValueAddress(V);
|
return MCE.getGlobalValueAddress(V);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user