From 792f2bfd9458330aff1cce05ba8dac1aaaffcab8 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Wed, 21 Sep 2016 14:05:07 +0100 Subject: [PATCH] translate_arm: Remove unused method ArmTranslatorVisitor::LinkToNextInstruction --- src/frontend/translate/translate_arm.cpp | 6 ------ src/frontend/translate/translate_arm/translate_arm.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/frontend/translate/translate_arm.cpp b/src/frontend/translate/translate_arm.cpp index 2c1d1700..5deba292 100644 --- a/src/frontend/translate/translate_arm.cpp +++ b/src/frontend/translate/translate_arm.cpp @@ -119,12 +119,6 @@ bool ArmTranslatorVisitor::UnpredictableInstruction() { return false; } -bool ArmTranslatorVisitor::LinkToNextInstruction() { - auto next_location = ir.current_location.AdvancePC(4); - ir.SetTerm(IR::Term::LinkBlock{next_location}); - return false; -} - IR::IREmitter::ResultAndCarry ArmTranslatorVisitor::EmitImmShift(IR::Value value, ShiftType type, Imm5 imm5, IR::Value carry_in) { switch (type) { case ShiftType::LSL: diff --git a/src/frontend/translate/translate_arm/translate_arm.h b/src/frontend/translate/translate_arm/translate_arm.h index 9981e8de..df8a5f39 100644 --- a/src/frontend/translate/translate_arm/translate_arm.h +++ b/src/frontend/translate/translate_arm/translate_arm.h @@ -36,7 +36,6 @@ struct ArmTranslatorVisitor final { bool ConditionPassed(Cond cond); bool InterpretThisInstruction(); bool UnpredictableInstruction(); - bool LinkToNextInstruction(); static u32 rotr(u32 x, int shift) { shift &= 31;