diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h index f6ccdc09555..aef3ac1489a 100644 --- a/include/llvm/MC/MCExpr.h +++ b/include/llvm/MC/MCExpr.h @@ -165,6 +165,7 @@ public: VK_GOT, VK_GOTOFF, + VK_GOTREL, VK_GOTPCREL, VK_GOTTPOFF, VK_INDNTPOFF, diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp index f1a3ffdf1ed..8d975fff9b2 100644 --- a/lib/MC/MCExpr.cpp +++ b/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(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)