Actually add instructions to the list of defined values so it gets
recognized as such! This prevents the CppWriter from treating every
operand as a forward reference and making a mess of the output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28800 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp
index c7cbe40..41b9b7e 100644
--- a/tools/llvm2cpp/CppWriter.cpp
+++ b/tools/llvm2cpp/CppWriter.cpp
@@ -1193,6 +1193,7 @@
break;
}
}
+ DefinedValues.insert(I);
Out << "\n";
delete [] opNames;
}