Actually add instructions to the list of defined values so it gets
authorReid Spencer <rspencer@reidspencer.com>
Thu, 15 Jun 2006 16:09:59 +0000 (16:09 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 15 Jun 2006 16:09:59 +0000 (16:09 +0000)
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

tools/llvm2cpp/CppWriter.cpp

index c7cbe40d604e17a11b09d52b491e4479f670944c..41b9b7eef9222b8d109d7c083e94fcc1790c8d52 100644 (file)
@@ -1193,6 +1193,7 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) {
       break;
     }
   }
+  DefinedValues.insert(I);
   Out << "\n";
   delete [] opNames;
 }