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 | 7775df1a6c499bb24479d1f0e1420ba89f686fbb (patch) | |
tree | 03362008ca6feb6688b8027b7a02d2414936f738 /lib/CodeGen/MachineCodeEmitter.cpp | |
parent | 2584ba5867c06e676519d5c7cccbcd59eb7641bc (diff) | |
download | llvm-7775df1a6c499bb24479d1f0e1420ba89f686fbb.tar.gz llvm-7775df1a6c499bb24479d1f0e1420ba89f686fbb.tar.bz2 llvm-7775df1a6c499bb24479d1f0e1420ba89f686fbb.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r-- | lib/CodeGen/MachineCodeEmitter.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp index d28fdeebbc..dc2d0d658b 100644 --- a/lib/CodeGen/MachineCodeEmitter.cpp +++ b/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 << "> "; + } }; } |