summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorColin LeMahieu <colinl@codeaurora.org>2016-02-09 19:17:34 +0000
committerColin LeMahieu <colinl@codeaurora.org>2016-02-09 19:17:34 +0000
commitea211422bac018bca0698aa5e3776ea5d7a84bf9 (patch)
treefd3ab5ee1410eec9d79420347f4156e24114bf0c /llvm/lib
parent11eedc98afe32e7c4637d5200d51acd68613eed5 (diff)
downloadbcm5719-llvm-ea211422bac018bca0698aa5e3776ea5d7a84bf9.tar.gz
bcm5719-llvm-ea211422bac018bca0698aa5e3776ea5d7a84bf9.zip
[MC] Adding GOTREL expression variant.
llvm-svn: 260258
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp
index f1a3ffdf1ed..8d975fff9b2 100644
--- a/llvm/lib/MC/MCExpr.cpp
+++ b/llvm/lib/MC/MCExpr.cpp
@@ -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)
OpenPOWER on IntegriCloud