mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
[unwind removal] Don't write out the dead 'unwind' instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149905 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1184,9 +1184,6 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
|
|||||||
Code = bitc::FUNC_CODE_INST_RESUME;
|
Code = bitc::FUNC_CODE_INST_RESUME;
|
||||||
PushValueAndType(I.getOperand(0), InstID, Vals, VE);
|
PushValueAndType(I.getOperand(0), InstID, Vals, VE);
|
||||||
break;
|
break;
|
||||||
case Instruction::Unwind:
|
|
||||||
Code = bitc::FUNC_CODE_INST_UNWIND;
|
|
||||||
break;
|
|
||||||
case Instruction::Unreachable:
|
case Instruction::Unreachable:
|
||||||
Code = bitc::FUNC_CODE_INST_UNREACHABLE;
|
Code = bitc::FUNC_CODE_INST_UNREACHABLE;
|
||||||
AbbrevToUse = FUNCTION_INST_UNREACHABLE_ABBREV;
|
AbbrevToUse = FUNCTION_INST_UNREACHABLE_ABBREV;
|
||||||
|
Reference in New Issue
Block a user