[unwind removal] Remove the 'unwind' instruction parsing bits.
authorBill Wendling <isanbard@gmail.com>
Mon, 6 Feb 2012 20:50:27 +0000 (20:50 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 6 Feb 2012 20:50:27 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149897 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp

index e9e16abddb687999f6031441cada67b2dfb98ab7..81bad631cf4b58d1f461c5b4734b70f7619e8b42 100644 (file)
@@ -2883,7 +2883,6 @@ int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
   switch (Token) {
   default:                    return Error(Loc, "expected instruction opcode");
   // Terminator Instructions.
-  case lltok::kw_unwind:      Inst = new UnwindInst(Context); return false;
   case lltok::kw_unreachable: Inst = new UnreachableInst(Context); return false;
   case lltok::kw_ret:         return ParseRet(Inst, BB, PFS);
   case lltok::kw_br:          return ParseBr(Inst, PFS);
index 33a9d14d1ad1f03f17ae22b7803bf017f3351e9e..ace3042eb626f0e5876265ad32027b27678fcc38 100644 (file)
@@ -2384,10 +2384,6 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
       InstructionList.push_back(I);
       break;
     }
-    case bitc::FUNC_CODE_INST_UNWIND: // UNWIND
-      I = new UnwindInst(Context);
-      InstructionList.push_back(I);
-      break;
     case bitc::FUNC_CODE_INST_UNREACHABLE: // UNREACHABLE
       I = new UnreachableInst(Context);
       InstructionList.push_back(I);