Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.222 -> 1.223 --- Log message: remove unused api, simplify some code --- Diffs of the changes: (+2 -20) AsmWriter.cpp | 22 ++-------------------- 1 files changed, 2 insertions(+), 20 deletions(-) Index: llvm/lib/VMCore/AsmWriter.cpp diff -u llvm/lib/VMCore/AsmWriter.cpp:1.222 llvm/lib/VMCore/AsmWriter.cpp:1.223 --- llvm/lib/VMCore/AsmWriter.cpp:1.222 Tue Dec 5 23:50:41 2006 +++ llvm/lib/VMCore/AsmWriter.cpp Tue Dec 5 23:55:41 2006 @@ -638,23 +638,6 @@ } -/// WriteAsOperand - Write the name of the specified value out to the specified -/// ostream. This can be useful when you just want to print int %reg126, not -/// the whole instruction that generated it. -/// -std::ostream &llvm::WriteAsOperand(std::ostream &Out, const Type *Ty, - bool PrintType, bool PrintName, - const Module *Context) { - std::map<const Type *, std::string> TypeNames; - assert(Context != 0 && "Can't write types as operand without module context"); - - fillTypeNameTable(Context, TypeNames); - - printTypeInt(Out, Ty, TypeNames); - - return Out << ' ' << Ty->getDescription(); -} - namespace llvm { class AssemblyWriter { @@ -1674,9 +1657,8 @@ SC_DEBUG(" Inserting value [" << VTy << "] = " << V << " slot=" << DestSlot << " ["); - // G = Global, C = Constant, T = Type, F = Function, o = other - SC_DEBUG((isa<GlobalVariable>(V) ? 'G' : (isa<Function>(V) ? 'F' : - (isa<Constant>(V) ? 'C' : 'o')))); + // G = Global, F = Function, o = other + SC_DEBUG((isa<GlobalVariable>(V) ? 'G' : (isa<Function>(V) ? 'F' : 'o'))); SC_DEBUG("]\n"); return DestSlot; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits