summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/MC
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-12-25 23:57:31 +0000
committerdim <dim@FreeBSD.org>2014-12-25 23:57:31 +0000
commit216743d017696d2489cd0b00628d9d4df6c2f79f (patch)
treef941730651fd4ee186dea910e689d7776297a24b /contrib/llvm/lib/MC
parentb04364d6ca668fbeac0edaf1a9dfd2a0c8063392 (diff)
downloadFreeBSD-src-216743d017696d2489cd0b00628d9d4df6c2f79f.zip
FreeBSD-src-216743d017696d2489cd0b00628d9d4df6c2f79f.tar.gz
Pull in r224415 from upstream llvm trunk (by Justin Hibbits):
Add parsing of 'foo@local". Summary: Currently, it supports generating, but not parsing, this expression. Test added as well. Test Plan: New test added, no regressions due to this. Reviewers: hfinkel Reviewed By: hfinkel Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6672 Pull in r224494 from upstream llvm trunk (by Justin Hibbits): Add a corresponding '@LOCAL' parse to match r224415. Pointed out by Jim Grosbach.
Diffstat (limited to 'contrib/llvm/lib/MC')
-rw-r--r--contrib/llvm/lib/MC/MCExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm/lib/MC/MCExpr.cpp b/contrib/llvm/lib/MC/MCExpr.cpp
index 6cb1e87..2d02392 100644
--- a/contrib/llvm/lib/MC/MCExpr.cpp
+++ b/contrib/llvm/lib/MC/MCExpr.cpp
@@ -348,6 +348,8 @@ MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
.Case("got@h", VK_PPC_GOT_HI)
.Case("GOT@HA", VK_PPC_GOT_HA)
.Case("got@ha", VK_PPC_GOT_HA)
+ .Case("local", VK_PPC_LOCAL)
+ .Case("LOCAL", VK_PPC_LOCAL)
.Case("TOCBASE", VK_PPC_TOCBASE)
.Case("tocbase", VK_PPC_TOCBASE)
.Case("TOC", VK_PPC_TOC)
OpenPOWER on IntegriCloud