[llvm-commits] [llvm] r92326 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 30 17:44:44 PST 2009
Author: lattner
Date: Wed Dec 30 19:44:44 2009
New Revision: 92326
URL: http://llvm.org/viewvc/llvm-project?rev=92326&view=rev
Log:
fix printing of function-local metadata to print all the operands of the
mdnode, not just operand 0 over and over.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=92326&r1=92325&r2=92326&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Wed Dec 30 19:44:44 2009
@@ -1208,9 +1208,9 @@
if (!Val)
Out << "null";
else {
- TypePrinter->print(N->getOperand(0)->getType(), Out);
+ TypePrinter->print(N->getOperand(mi)->getType(), Out);
Out << ' ';
- WriteAsOperandInternal(Out, N->getOperand(0), TypePrinter, Machine);
+ WriteAsOperandInternal(Out, N->getOperand(mi), TypePrinter, Machine);
}
if (mi + 1 != me)
Out << ", ";
More information about the llvm-commits
mailing list