From 6178ee9b36c5c214ca5c4bc14d0ab6a7758f8511 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Jan 2003 00:22:37 +0000 Subject: [PATCH] Add support for global address by string and constant pool values llvm-svn: 5215 --- llvm/lib/CodeGen/MachineCodeEmitter.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp index d28fdeebbccf..dc2d0d658be0 100644 --- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp +++ b/llvm/lib/CodeGen/MachineCodeEmitter.cpp @@ -28,9 +28,18 @@ namespace { void emitPCRelativeDisp(Value *V) { std::cout << "getName() << ": 0xXX 0xXX 0xXX 0xXX> "; } - void emitGlobalAddress(GlobalValue *V) { + void emitGlobalAddress(GlobalValue *V, bool isPCRelative) { std::cout << "getName() << ": 0xXX 0xXX 0xXX 0xXX> "; } + void emitGlobalAddress(const std::string &Name, bool isPCRelative) { + std::cout << " "; + } + + void emitFunctionConstantValueAddress(unsigned ConstantNum, int Offset) { + std::cout << " "; + } }; }