[llvm-commits] [llvm] r149905 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Bill Wendling isanbard at gmail.com
Mon Feb 6 13:30:37 PST 2012


Author: void
Date: Mon Feb  6 15:30:37 2012
New Revision: 149905

URL: http://llvm.org/viewvc/llvm-project?rev=149905&view=rev
Log:
[unwind removal] Don't write out the dead 'unwind' instruction.

Modified:
    llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=149905&r1=149904&r2=149905&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Mon Feb  6 15:30:37 2012
@@ -1184,9 +1184,6 @@
     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;





More information about the llvm-commits mailing list