mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 15:08:16 +00:00
[MC] Adding GOTREL expression variant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c3c7d8479
commit
3f9e772b2c
@ -165,6 +165,7 @@ public:
|
||||
|
||||
VK_GOT,
|
||||
VK_GOTOFF,
|
||||
VK_GOTREL,
|
||||
VK_GOTPCREL,
|
||||
VK_GOTTPOFF,
|
||||
VK_INDNTPOFF,
|
||||
|
@ -180,6 +180,7 @@ StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) {
|
||||
|
||||
case VK_GOT: return "GOT";
|
||||
case VK_GOTOFF: return "GOTOFF";
|
||||
case VK_GOTREL: return "GOTREL";
|
||||
case VK_GOTPCREL: return "GOTPCREL";
|
||||
case VK_GOTTPOFF: return "GOTTPOFF";
|
||||
case VK_INDNTPOFF: return "INDNTPOFF";
|
||||
@ -312,6 +313,7 @@ MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
|
||||
return StringSwitch<VariantKind>(Name.lower())
|
||||
.Case("got", VK_GOT)
|
||||
.Case("gotoff", VK_GOTOFF)
|
||||
.Case("gotrel", VK_GOTREL)
|
||||
.Case("gotpcrel", VK_GOTPCREL)
|
||||
.Case("gottpoff", VK_GOTTPOFF)
|
||||
.Case("indntpoff", VK_INDNTPOFF)
|
||||
|
Loading…
x
Reference in New Issue
Block a user