AsmWriter should not print LLVM constant in comment. Assembler won't like
authorEvan Cheng <evan.cheng@apple.com>
Wed, 1 Mar 2006 22:00:59 +0000 (22:00 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 1 Mar 2006 22:00:59 +0000 (22:00 +0000)
multi-line comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26461 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index a3ab22c04c9d14607d52e9876fe0a4e9389c6371..6b644219e13ac306dd98d24e9960ea095deff419 100644 (file)
@@ -26,7 +26,6 @@
 #include "llvm/Instructions.h"
 #include "llvm/Module.h"
 #include "llvm/SymbolTable.h"
-#include "llvm/Assembly/Writer.h"
 #include "llvm/Support/CFG.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/STLExtras.h"
@@ -1312,9 +1311,6 @@ 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 {