mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
[unwind removal] Remove the 'unwind' instruction parsing bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d5a289f2d
commit
e185fada9b
@ -2883,7 +2883,6 @@ int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
|
|||||||
switch (Token) {
|
switch (Token) {
|
||||||
default: return Error(Loc, "expected instruction opcode");
|
default: return Error(Loc, "expected instruction opcode");
|
||||||
// Terminator Instructions.
|
// 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_unreachable: Inst = new UnreachableInst(Context); return false;
|
||||||
case lltok::kw_ret: return ParseRet(Inst, BB, PFS);
|
case lltok::kw_ret: return ParseRet(Inst, BB, PFS);
|
||||||
case lltok::kw_br: return ParseBr(Inst, PFS);
|
case lltok::kw_br: return ParseBr(Inst, PFS);
|
||||||
|
@ -2384,10 +2384,6 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
|||||||
InstructionList.push_back(I);
|
InstructionList.push_back(I);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case bitc::FUNC_CODE_INST_UNWIND: // UNWIND
|
|
||||||
I = new UnwindInst(Context);
|
|
||||||
InstructionList.push_back(I);
|
|
||||||
break;
|
|
||||||
case bitc::FUNC_CODE_INST_UNREACHABLE: // UNREACHABLE
|
case bitc::FUNC_CODE_INST_UNREACHABLE: // UNREACHABLE
|
||||||
I = new UnreachableInst(Context);
|
I = new UnreachableInst(Context);
|
||||||
InstructionList.push_back(I);
|
InstructionList.push_back(I);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user