summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-06 21:30:37 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-06 21:30:37 +0000
commit7c49a0e9e368b49461757b5c2d97044c920c1387 (patch)
tree7a410aed53aed67b6f23ffcad473942cd5e96b82 /llvm/lib/Bitcode/Writer
parent7e2863b4160a64721a060fbb40f10ea46586436a (diff)
downloadbcm5719-llvm-7c49a0e9e368b49461757b5c2d97044c920c1387.tar.gz
bcm5719-llvm-7c49a0e9e368b49461757b5c2d97044c920c1387.zip
[unwind removal] Don't write out the dead 'unwind' instruction.
llvm-svn: 149905
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 475bb526f9a..0e2f0ec783c 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -1184,9 +1184,6 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
Code = bitc::FUNC_CODE_INST_RESUME;
PushValueAndType(I.getOperand(0), InstID, Vals, VE);
break;
- case Instruction::Unwind:
- Code = bitc::FUNC_CODE_INST_UNWIND;
- break;
case Instruction::Unreachable:
Code = bitc::FUNC_CODE_INST_UNREACHABLE;
AbbrevToUse = FUNCTION_INST_UNREACHABLE_ABBREV;
OpenPOWER on IntegriCloud