mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[PowerPC] Clean up VK_PPC_TOC... names
This is another minor cleanup; to bring enum names in line with the corresponding @modifier names, this renames: VK_PPC_TOC -> VK_PPC_TOCBASE VK_PPC_TOC_ENTRY -> VK_PPC_TOC16 No code change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184491 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,7 +93,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
|
||||
case MCSymbolRefExpr::VK_PPC_ADDR16_HA:
|
||||
Type = ELF::R_PPC_ADDR16_HA;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_PPC_TOC_ENTRY:
|
||||
case MCSymbolRefExpr::VK_PPC_TOC16:
|
||||
Type = ELF::R_PPC64_TOC16;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_PPC_TOC16_LO:
|
||||
@@ -140,7 +140,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
|
||||
case MCSymbolRefExpr::VK_PPC_ADDR16_LO:
|
||||
Type = ELF::R_PPC64_ADDR16_LO_DS;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_PPC_TOC_ENTRY:
|
||||
case MCSymbolRefExpr::VK_PPC_TOC16:
|
||||
Type = ELF::R_PPC64_TOC16_DS;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_PPC_TOC16_LO:
|
||||
@@ -168,7 +168,7 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
|
||||
case FK_Data_8:
|
||||
switch (Modifier) {
|
||||
default: llvm_unreachable("Unsupported Modifier");
|
||||
case MCSymbolRefExpr::VK_PPC_TOC:
|
||||
case MCSymbolRefExpr::VK_PPC_TOCBASE:
|
||||
Type = ELF::R_PPC64_TOC;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_None:
|
||||
|
Reference in New Issue
Block a user