mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[MC] Rename TLSDESC as it's not ARM specific.
Similarly to what was done for TLSCALL in r263515. llvm-svn: 263564
This commit is contained in:
parent
8c6e4aca72
commit
9708c4a28b
@ -178,6 +178,7 @@ public:
|
||||
VK_TPOFF,
|
||||
VK_DTPOFF,
|
||||
VK_TLSCALL, // symbol(tlscall)
|
||||
VK_TLSDESC, // symbol(tlsdesc)
|
||||
VK_TLVP, // Mach-O thread local variable relocations
|
||||
VK_TLVPPAGE,
|
||||
VK_TLVPPAGEOFF,
|
||||
@ -196,7 +197,6 @@ public:
|
||||
VK_ARM_PREL31,
|
||||
VK_ARM_SBREL, // symbol(sbrel)
|
||||
VK_ARM_TLSLDO, // symbol(tlsldo)
|
||||
VK_ARM_TLSDESC, // symbol(tlsdesc)
|
||||
VK_ARM_TLSDESCSEQ,
|
||||
|
||||
VK_PPC_LO, // symbol@l
|
||||
|
@ -195,6 +195,7 @@ StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) {
|
||||
case VK_TPOFF: return "TPOFF";
|
||||
case VK_TPREL: return "TPREL";
|
||||
case VK_TLSCALL: return "tlscall";
|
||||
case VK_TLSDESC: return "tlsdesc";
|
||||
case VK_TLVP: return "TLVP";
|
||||
case VK_TLVPPAGE: return "TLVPPAGE";
|
||||
case VK_TLVPPAGEOFF: return "TLVPPAGEOFF";
|
||||
@ -212,7 +213,6 @@ StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) {
|
||||
case VK_ARM_PREL31: return "prel31";
|
||||
case VK_ARM_SBREL: return "sbrel";
|
||||
case VK_ARM_TLSLDO: return "tlsldo";
|
||||
case VK_ARM_TLSDESC: return "tlsdesc";
|
||||
case VK_ARM_TLSDESCSEQ: return "tlsdescseq";
|
||||
case VK_PPC_LO: return "l";
|
||||
case VK_PPC_HI: return "h";
|
||||
@ -321,6 +321,7 @@ MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
|
||||
.Case("gotntpoff", VK_GOTNTPOFF)
|
||||
.Case("plt", VK_PLT)
|
||||
.Case("tlscall", VK_TLSCALL)
|
||||
.Case("tlsdesc", VK_TLSDESC)
|
||||
.Case("tlsgd", VK_TLSGD)
|
||||
.Case("tlsld", VK_TLSLD)
|
||||
.Case("tlsldm", VK_TLSLDM)
|
||||
@ -398,7 +399,6 @@ MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
|
||||
.Case("prel31", VK_ARM_PREL31)
|
||||
.Case("sbrel", VK_ARM_SBREL)
|
||||
.Case("tlsldo", VK_ARM_TLSLDO)
|
||||
.Case("tlsdesc", VK_ARM_TLSDESC)
|
||||
.Default(VK_Invalid);
|
||||
}
|
||||
|
||||
|
@ -216,7 +216,7 @@ unsigned ARMELFObjectWriter::GetRelocTypeInner(const MCValue &Target,
|
||||
case MCSymbolRefExpr::VK_TLSCALL:
|
||||
Type = ELF::R_ARM_TLS_CALL;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_ARM_TLSDESC:
|
||||
case MCSymbolRefExpr::VK_TLSDESC:
|
||||
Type = ELF::R_ARM_TLS_GOTDESC;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_ARM_TLSDESCSEQ:
|
||||
|
Loading…
Reference in New Issue
Block a user