mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
[MC] Adding GOTREL expression variant.
llvm-svn: 260258
This commit is contained in:
parent
b34ba75bdc
commit
270ce6c950
@ -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…
Reference in New Issue
Block a user