diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-15 16:09:59 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-15 16:09:59 +0000 |
commit | 68464b74b81eda369dac5c26c4e7f8d00d3f7c64 (patch) | |
tree | 5d267cb1f9f889ea8507f900d6820fabfc769641 /tools | |
parent | 35f8c208a98371b3eb38494c03514f497b9af12b (diff) | |
download | external_llvm-68464b74b81eda369dac5c26c4e7f8d00d3f7c64.zip external_llvm-68464b74b81eda369dac5c26c4e7f8d00d3f7c64.tar.gz external_llvm-68464b74b81eda369dac5c26c4e7f8d00d3f7c64.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm2cpp/CppWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) { break; } } + DefinedValues.insert(I); Out << "\n"; delete [] opNames; } |