Add support for global address by string and constant pool values
authorChris Lattner <sabre@nondot.org>
Mon, 13 Jan 2003 00:22:37 +0000 (00:22 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Jan 2003 00:22:37 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5215 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeEmitter.cpp

index d28fdeebbccfbe7bd99b237ba677e8dd8060cbcc..dc2d0d658be051aba8258e0734a8a3bd1fc7b643 100644 (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 << "> ";
+    }
   };
 }