mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
[PowerPC] Rename some more VK_PPC_ enums
This renames more VK_PPC_ enums, to make them more closely reflect the @modifier string they represent. This also prepares for adding a bunch of new VK_PPC_ enums in upcoming patches. For consistency, some MO_ flags related to VK_PPC_ enums are likewise renamed. No change in behaviour. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -112,20 +112,20 @@ static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol,
|
||||
unsigned access = MO.getTargetFlags() & PPCII::MO_ACCESS_MASK;
|
||||
|
||||
switch (access) {
|
||||
case PPCII::MO_TPREL16_HA:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_TPREL16_HA;
|
||||
case PPCII::MO_TPREL_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_TPREL_LO;
|
||||
break;
|
||||
case PPCII::MO_TPREL16_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_TPREL16_LO;
|
||||
case PPCII::MO_TPREL_HA:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_TPREL_HA;
|
||||
break;
|
||||
case PPCII::MO_DTPREL16_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_DTPREL16_LO;
|
||||
case PPCII::MO_DTPREL_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_DTPREL_LO;
|
||||
break;
|
||||
case PPCII::MO_TLSLD16_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_GOT_TLSLD16_LO;
|
||||
case PPCII::MO_TLSLD_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_GOT_TLSLD_LO;
|
||||
break;
|
||||
case PPCII::MO_TOC16_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_TOC16_LO;
|
||||
case PPCII::MO_TOC_LO:
|
||||
RefKind = MCSymbolRefExpr::VK_PPC_TOC_LO;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol,
|
||||
|
||||
// Add ha16() / lo16() markers if required.
|
||||
switch (access) {
|
||||
case PPCII::MO_HA16:
|
||||
Expr = PPCMCExpr::CreateHa16(Expr, Ctx);
|
||||
case PPCII::MO_LO:
|
||||
Expr = PPCMCExpr::CreateLo(Expr, Ctx);
|
||||
break;
|
||||
case PPCII::MO_LO16:
|
||||
Expr = PPCMCExpr::CreateLo16(Expr, Ctx);
|
||||
case PPCII::MO_HA:
|
||||
Expr = PPCMCExpr::CreateHa(Expr, Ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user