From: Reid Spencer Date: Thu, 15 Jun 2006 16:09:59 +0000 (+0000) Subject: Actually add instructions to the list of defined values so it gets X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=68464b74b81eda369dac5c26c4e7f8d00d3f7c64;p=oota-llvm.git 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 c7cbe40d604..41b9b7eef92 100644 --- a/tools/llvm2cpp/CppWriter.cpp +++ b/tools/llvm2cpp/CppWriter.cpp @@ -1193,6 +1193,7 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) { break; } } + DefinedValues.insert(I); Out << "\n"; delete [] opNames; }