projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81cf167
)
Recognize strings for Hexagon-specific variant kinds
author
Krzysztof Parzyszek
<kparzysz@codeaurora.org>
Fri, 18 Dec 2015 18:47:27 +0000
(18:47 +0000)
committer
Krzysztof Parzyszek
<kparzysz@codeaurora.org>
Fri, 18 Dec 2015 18:47:27 +0000
(18:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256007
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCExpr.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCExpr.cpp
b/lib/MC/MCExpr.cpp
index 56524031d69b8e0c0e41637f1276d1a556b96ed1..0f26b38c29d7c8d6d4828412feb228bd797ae8e8 100644
(file)
--- a/
lib/MC/MCExpr.cpp
+++ b/
lib/MC/MCExpr.cpp
@@
-382,6
+382,13
@@
MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
.Case("got@tlsld@l", VK_PPC_GOT_TLSLD_LO)
.Case("got@tlsld@h", VK_PPC_GOT_TLSLD_HI)
.Case("got@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)