Back out my last check-in. Wrong place to fix it.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 1 Mar 2006 22:17:00 +0000 (22:17 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 1 Mar 2006 22:17:00 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26462 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 6b644219e13ac306dd98d24e9960ea095deff419..cc8c5a12324fa78dc28f4b6182dad9ef83c3b160 100644 (file)
@@ -1311,6 +1311,9 @@ void Constant::print(std::ostream &o) const {
   if (this == 0) { o << "<null> constant value\n"; return; }
 
   o << ' ' << getType()->getDescription() << ' ';
+
+  std::map<const Type *, std::string> TypeTable;
+  WriteConstantInt(o, this, false, TypeTable, 0);
 }
 
 void Type::print(std::ostream &o) const {