mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix misaligned indentation in "if" block in MipsMCCodeEmitter.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c46a29cd9c
commit
56b7f736a6
@ -366,98 +366,98 @@ getExprOpValue(const MCExpr *Expr,SmallVectorImpl<MCFixup> &Fixups) const {
|
||||
return Res;
|
||||
}
|
||||
if (Kind == MCExpr::SymbolRef) {
|
||||
Mips::Fixups FixupKind = Mips::Fixups(0);
|
||||
Mips::Fixups FixupKind = Mips::Fixups(0);
|
||||
|
||||
switch(cast<MCSymbolRefExpr>(Expr)->getKind()) {
|
||||
default: llvm_unreachable("Unknown fixup kind!");
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GPOFF_HI :
|
||||
FixupKind = Mips::fixup_Mips_GPOFF_HI;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GPOFF_LO :
|
||||
FixupKind = Mips::fixup_Mips_GPOFF_LO;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_PAGE :
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT_PAGE
|
||||
: Mips::fixup_Mips_GOT_PAGE;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_OFST :
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT_OFST
|
||||
: Mips::fixup_Mips_GOT_OFST;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_DISP :
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT_DISP
|
||||
: Mips::fixup_Mips_GOT_DISP;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GPREL:
|
||||
FixupKind = Mips::fixup_Mips_GPREL16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_CALL:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_CALL16
|
||||
: Mips::fixup_Mips_CALL16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT16:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT16
|
||||
: Mips::fixup_Mips_GOT_Global;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT16
|
||||
: Mips::fixup_Mips_GOT_Local;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_ABS_HI:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_HI16
|
||||
: Mips::fixup_Mips_HI16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_ABS_LO:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_LO16
|
||||
: Mips::fixup_Mips_LO16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TLSGD:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_GD
|
||||
: Mips::fixup_Mips_TLSGD;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TLSLDM:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_LDM
|
||||
: Mips::fixup_Mips_TLSLDM;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_DTPREL_HI:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_DTPREL_HI16
|
||||
: Mips::fixup_Mips_DTPREL_HI;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_DTPREL_LO:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_DTPREL_LO16
|
||||
: Mips::fixup_Mips_DTPREL_LO;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOTTPREL:
|
||||
FixupKind = Mips::fixup_Mips_GOTTPREL;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TPREL_HI:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_TPREL_HI16
|
||||
: Mips::fixup_Mips_TPREL_HI;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TPREL_LO:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_TPREL_LO16
|
||||
: Mips::fixup_Mips_TPREL_LO;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_HIGHER:
|
||||
FixupKind = Mips::fixup_Mips_HIGHER;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_HIGHEST:
|
||||
FixupKind = Mips::fixup_Mips_HIGHEST;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_HI16:
|
||||
FixupKind = Mips::fixup_Mips_GOT_HI16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_LO16:
|
||||
FixupKind = Mips::fixup_Mips_GOT_LO16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_CALL_HI16:
|
||||
FixupKind = Mips::fixup_Mips_CALL_HI16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_CALL_LO16:
|
||||
FixupKind = Mips::fixup_Mips_CALL_LO16;
|
||||
break;
|
||||
} // switch
|
||||
switch(cast<MCSymbolRefExpr>(Expr)->getKind()) {
|
||||
default: llvm_unreachable("Unknown fixup kind!");
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GPOFF_HI :
|
||||
FixupKind = Mips::fixup_Mips_GPOFF_HI;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GPOFF_LO :
|
||||
FixupKind = Mips::fixup_Mips_GPOFF_LO;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_PAGE :
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT_PAGE
|
||||
: Mips::fixup_Mips_GOT_PAGE;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_OFST :
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT_OFST
|
||||
: Mips::fixup_Mips_GOT_OFST;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_DISP :
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT_DISP
|
||||
: Mips::fixup_Mips_GOT_DISP;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GPREL:
|
||||
FixupKind = Mips::fixup_Mips_GPREL16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_CALL:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_CALL16
|
||||
: Mips::fixup_Mips_CALL16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT16:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT16
|
||||
: Mips::fixup_Mips_GOT_Global;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_GOT16
|
||||
: Mips::fixup_Mips_GOT_Local;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_ABS_HI:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_HI16
|
||||
: Mips::fixup_Mips_HI16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_ABS_LO:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_LO16
|
||||
: Mips::fixup_Mips_LO16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TLSGD:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_GD
|
||||
: Mips::fixup_Mips_TLSGD;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TLSLDM:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_LDM
|
||||
: Mips::fixup_Mips_TLSLDM;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_DTPREL_HI:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_DTPREL_HI16
|
||||
: Mips::fixup_Mips_DTPREL_HI;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_DTPREL_LO:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_DTPREL_LO16
|
||||
: Mips::fixup_Mips_DTPREL_LO;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOTTPREL:
|
||||
FixupKind = Mips::fixup_Mips_GOTTPREL;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TPREL_HI:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_TPREL_HI16
|
||||
: Mips::fixup_Mips_TPREL_HI;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_TPREL_LO:
|
||||
FixupKind = IsMicroMips ? Mips::fixup_MICROMIPS_TLS_TPREL_LO16
|
||||
: Mips::fixup_Mips_TPREL_LO;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_HIGHER:
|
||||
FixupKind = Mips::fixup_Mips_HIGHER;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_HIGHEST:
|
||||
FixupKind = Mips::fixup_Mips_HIGHEST;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_HI16:
|
||||
FixupKind = Mips::fixup_Mips_GOT_HI16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_LO16:
|
||||
FixupKind = Mips::fixup_Mips_GOT_LO16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_CALL_HI16:
|
||||
FixupKind = Mips::fixup_Mips_CALL_HI16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_Mips_CALL_LO16:
|
||||
FixupKind = Mips::fixup_Mips_CALL_LO16;
|
||||
break;
|
||||
} // switch
|
||||
|
||||
Fixups.push_back(MCFixup::Create(0, Expr, MCFixupKind(FixupKind)));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user