From: Evan Cheng Date: Wed, 1 Mar 2006 22:00:59 +0000 (+0000) Subject: AsmWriter should not print LLVM constant in comment. Assembler won't like X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7cfdd01869c1f8f32d9bcac32cf1a6dde7c88b28;p=oota-llvm.git AsmWriter should not print LLVM constant in comment. Assembler won't like multi-line comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26461 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index a3ab22c04c9..6b644219e13 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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 << " constant value\n"; return; } o << ' ' << getType()->getDescription() << ' '; - - std::map TypeTable; - WriteConstantInt(o, this, false, TypeTable, 0); } void Type::print(std::ostream &o) const {