diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-13 00:22:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-13 00:22:37 +0000 |
commit | 6178ee9b36c5c214ca5c4bc14d0ab6a7758f8511 (patch) | |
tree | 0a3bc529ad29f966d25129a5111d64036367ec7d /llvm/lib/CodeGen/MachineCodeEmitter.cpp | |
parent | b63ba5741112bd79d1c10fb9ba5cd7cf6e6343e7 (diff) | |
download | bcm5719-llvm-6178ee9b36c5c214ca5c4bc14d0ab6a7758f8511.tar.gz bcm5719-llvm-6178ee9b36c5c214ca5c4bc14d0ab6a7758f8511.zip |
Add support for global address by string and constant pool values
llvm-svn: 5215
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCodeEmitter.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp index d28fdeebbcc..dc2d0d658be 100644 --- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp +++ b/llvm/lib/CodeGen/MachineCodeEmitter.cpp @@ -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 << "> "; + } }; } |