mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 18:56:04 +00:00
Add support for lowercase variants.
llvm-svn: 124071
This commit is contained in:
parent
2ef605b499
commit
14333be1af
@ -206,19 +206,33 @@ MCSymbolRefExpr::VariantKind
|
||||
MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
|
||||
return StringSwitch<VariantKind>(Name)
|
||||
.Case("GOT", VK_GOT)
|
||||
.Case("got", VK_GOT)
|
||||
.Case("GOTOFF", VK_GOTOFF)
|
||||
.Case("gotoff", VK_GOTOFF)
|
||||
.Case("GOTPCREL", VK_GOTPCREL)
|
||||
.Case("gotpcrel", VK_GOTPCREL)
|
||||
.Case("GOTTPOFF", VK_GOTTPOFF)
|
||||
.Case("gottpoff", VK_GOTTPOFF)
|
||||
.Case("INDNTPOFF", VK_INDNTPOFF)
|
||||
.Case("indntpoff", VK_INDNTPOFF)
|
||||
.Case("NTPOFF", VK_NTPOFF)
|
||||
.Case("ntpoff", VK_NTPOFF)
|
||||
.Case("GOTNTPOFF", VK_GOTNTPOFF)
|
||||
.Case("gotntpoff", VK_GOTNTPOFF)
|
||||
.Case("PLT", VK_PLT)
|
||||
.Case("plt", VK_PLT)
|
||||
.Case("TLSGD", VK_TLSGD)
|
||||
.Case("tlsgd", VK_TLSGD)
|
||||
.Case("TLSLD", VK_TLSLD)
|
||||
.Case("tlsld", VK_TLSLD)
|
||||
.Case("TLSLDM", VK_TLSLDM)
|
||||
.Case("tlsldm", VK_TLSLDM)
|
||||
.Case("TPOFF", VK_TPOFF)
|
||||
.Case("tpoff", VK_TPOFF)
|
||||
.Case("DTPOFF", VK_DTPOFF)
|
||||
.Case("dtpoff", VK_DTPOFF)
|
||||
.Case("TLVP", VK_TLVP)
|
||||
.Case("tlvp", VK_TLVP)
|
||||
.Default(VK_Invalid);
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ bar:
|
||||
leaq foo@TLSGD(%rip), %rax # R_X86_64_TLSGD
|
||||
leaq foo@TPOFF(%rax), %rax # R_X86_64_TPOFF32
|
||||
leaq foo@TLSLD(%rip), %rdi # R_X86_64_TLSLD
|
||||
leaq foo@DTPOFF(%rax), %rcx # R_X86_64_DTPOFF32
|
||||
leaq foo@dtpoff(%rax), %rcx # R_X86_64_DTPOFF32
|
||||
pushq $bar
|
||||
movq foo(%rip), %rdx
|
||||
leaq foo-bar(%r14),%r14
|
||||
|
Loading…
x
Reference in New Issue
Block a user