diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-02 05:46:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-02 05:46:45 +0000 |
commit | 5285b5ea2f49928bbb40283dccb739209504e7b3 (patch) | |
tree | 2d682b08c74ba42d428b04bb6d0ce7285a84a0a3 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 1fc27f0cdb5e6494fd24153a67692acc00cb497d (diff) | |
download | bcm5719-llvm-5285b5ea2f49928bbb40283dccb739209504e7b3.tar.gz bcm5719-llvm-5285b5ea2f49928bbb40283dccb739209504e7b3.zip |
add reader logic for terminator instrs.
llvm-svn: 36642
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index f4ebeeaffdc..fbad7ff1255 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -507,7 +507,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, case Instruction::GetElementPtr: Code = bitc::FUNC_CODE_INST_GEP; - Vals.push_back(I.getNumOperands()); for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) { Vals.push_back(VE.getTypeID(I.getOperand(i)->getType())); Vals.push_back(VE.getValueID(I.getOperand(i))); @@ -567,7 +566,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, case Instruction::Switch: Code = bitc::FUNC_CODE_INST_SWITCH; Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); - Vals.push_back(I.getNumOperands()); for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) Vals.push_back(VE.getValueID(I.getOperand(i))); break; |