Add support for global address by string and constant pool values

llvm-svn: 5215
This commit is contained in:
Chris Lattner 2003-01-13 00:22:37 +00:00
parent b63ba57411
commit 6178ee9b36
1 changed files with 10 additions and 1 deletions

View File

@ -28,9 +28,18 @@ namespace {
void emitPCRelativeDisp(Value *V) {
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> ";
}
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 << "> ";
}
};
}