[llvm] r256007 - Recognize strings for Hexagon-specific variant kinds
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 10:47:28 PST 2015
Author: kparzysz
Date: Fri Dec 18 12:47:27 2015
New Revision: 256007
URL: http://llvm.org/viewvc/llvm-project?rev=256007&view=rev
Log:
Recognize strings for Hexagon-specific variant kinds
Modified:
llvm/trunk/lib/MC/MCExpr.cpp
Modified: llvm/trunk/lib/MC/MCExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCExpr.cpp?rev=256007&r1=256006&r2=256007&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCExpr.cpp (original)
+++ llvm/trunk/lib/MC/MCExpr.cpp Fri Dec 18 12:47:27 2015
@@ -382,6 +382,13 @@ MCSymbolRefExpr::getVariantKindForName(S
.Case("got at tlsld@l", VK_PPC_GOT_TLSLD_LO)
.Case("got at tlsld@h", VK_PPC_GOT_TLSLD_HI)
.Case("got at tlsld@ha", VK_PPC_GOT_TLSLD_HA)
+ .Case("gdgot", VK_Hexagon_GD_GOT)
+ .Case("gdplt", VK_Hexagon_GD_PLT)
+ .Case("iegot", VK_Hexagon_IE_GOT)
+ .Case("ie", VK_Hexagon_IE)
+ .Case("ldgot", VK_Hexagon_LD_GOT)
+ .Case("ldplt", VK_Hexagon_LD_PLT)
+ .Case("pcrel", VK_Hexagon_PCREL)
.Case("none", VK_ARM_NONE)
.Case("got_prel", VK_ARM_GOT_PREL)
.Case("target1", VK_ARM_TARGET1)
More information about the llvm-commits
mailing list