summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-15 16:09:59 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-15 16:09:59 +0000
commit68464b74b81eda369dac5c26c4e7f8d00d3f7c64 (patch)
tree5d267cb1f9f889ea8507f900d6820fabfc769641 /tools
parent35f8c208a98371b3eb38494c03514f497b9af12b (diff)
downloadllvm-68464b74b81eda369dac5c26c4e7f8d00d3f7c64.tar.gz
llvm-68464b74b81eda369dac5c26c4e7f8d00d3f7c64.tar.bz2
llvm-68464b74b81eda369dac5c26c4e7f8d00d3f7c64.tar.xz
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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp
index c7cbe40d60..41b9b7eef9 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;
}