aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-31 01:44:44 +0000
committerChris Lattner <sabre@nondot.org>2009-12-31 01:44:44 +0000
commit7d054b385f6e102b592d8a335bfdfae6d7c9bf44 (patch)
tree448be826e5a1b60c3acb647145f9a7e2eba13749 /lib
parent4a3d3a54ebc7125f851e978b7188bda1bfdc14ac (diff)
downloadexternal_llvm-7d054b385f6e102b592d8a335bfdfae6d7c9bf44.zip
external_llvm-7d054b385f6e102b592d8a335bfdfae6d7c9bf44.tar.gz
external_llvm-7d054b385f6e102b592d8a335bfdfae6d7c9bf44.tar.bz2
fix printing of function-local metadata to print all the operands of the
mdnode, not just operand 0 over and over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/AsmWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index f9ca2cb..d2693c8 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -1208,9 +1208,9 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
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 << ", ";