mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Silence warnings about mixing enums.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27ff6b5e2b
commit
e545ee20f1
@ -168,8 +168,7 @@ bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
|
|||||||
uint64_t Value,
|
uint64_t Value,
|
||||||
const MCInstFragment *DF,
|
const MCInstFragment *DF,
|
||||||
const MCAsmLayout &Layout) const {
|
const MCAsmLayout &Layout) const {
|
||||||
switch (Fixup.getKind()) {
|
switch ((unsigned)Fixup.getKind()) {
|
||||||
default: assert(0 && "Unexpected fixup kind in fixupNeedsRelaxation()!");
|
|
||||||
case ARM::fixup_arm_thumb_bcc: {
|
case ARM::fixup_arm_thumb_bcc: {
|
||||||
// Relaxing tBcc to t2Bcc. tBcc has a signed 9-bit displacement with the
|
// Relaxing tBcc to t2Bcc. tBcc has a signed 9-bit displacement with the
|
||||||
// low bit being an implied zero. There's an implied +4 offset for the
|
// low bit being an implied zero. There's an implied +4 offset for the
|
||||||
@ -188,7 +187,7 @@ bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
|
|||||||
return Offset > 1020 || Offset < 0 || Offset & 3;
|
return Offset > 1020 || Offset < 0 || Offset & 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
llvm_unreachable("Invalid switch/cash!?");
|
llvm_unreachable("Unexpected fixup kind in fixupNeedsRelaxation()!");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARMAsmBackend::relaxInstruction(const MCInst &Inst, MCInst &Res) const {
|
void ARMAsmBackend::relaxInstruction(const MCInst &Inst, MCInst &Res) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user