Create constant expression casts instead of constant instructions if possible
[oota-llvm.git] / lib / CodeGen / MachineCodeEmitter.cpp
index e2b4908c74207e7ac0ad05064577ff167d344149..dc2d0d658be051aba8258e0734a8a3bd1fc7b643 100644 (file)
@@ -26,7 +26,19 @@ namespace {
       std::cout << "0x" << std::hex << (unsigned int)B << std::dec << " ";
     }
     void emitPCRelativeDisp(Value *V) {
-      std::cout << "<" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
+      std::cout << "<disp %" << V->getName() << ": 0xXX 0xXX 0xXX 0xXX> ";
+    }
+    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 << "> ";
     }
   };
 }