mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Add support for global address by string and constant pool values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2584ba5867
commit
7775df1a6c
@ -28,9 +28,18 @@ namespace {
|
|||||||
void emitPCRelativeDisp(Value *V) {
|
void emitPCRelativeDisp(Value *V) {
|
||||||
std::cout << "<disp %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
|
std::cout << "<disp %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
|
||||||
}
|
}
|
||||||
void emitGlobalAddress(GlobalValue *V) {
|
void emitGlobalAddress(GlobalValue *V, bool isPCRelative) {
|
||||||
std::cout << "<addr %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
|
std::cout << "<addr %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
|
||||||
}
|
}
|
||||||
|
void emitGlobalAddress(const std::string &Name, bool isPCRelative) {
|
||||||
|
std::cout << "<addr %" << Name << ": 0xXX 0xXX 0xXX 0xXX> ";
|
||||||
|
}
|
||||||
|
|
||||||
|
void emitFunctionConstantValueAddress(unsigned ConstantNum, int Offset) {
|
||||||
|
std::cout << "<addr const#" << ConstantNum;
|
||||||
|
if (Offset) std::cout << " + " << Offset;
|
||||||
|
std::cout << "> ";
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user