summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCExpr.cpp
diff options
context:
space:
mode:
authorJustin Hibbits <jrh29@alumni.cwru.edu>2014-12-17 06:23:35 +0000
committerJustin Hibbits <jrh29@alumni.cwru.edu>2014-12-17 06:23:35 +0000
commit0c0d5deff1d6c3dbad6b0e76e4d788dda33efa3b (patch)
tree447bf268e654fab8f1740d807d1db694262e8741 /llvm/lib/MC/MCExpr.cpp
parent5f0603098964993677f29ae0a8346e84eb21b225 (diff)
downloadbcm5719-llvm-0c0d5deff1d6c3dbad6b0e76e4d788dda33efa3b.tar.gz
bcm5719-llvm-0c0d5deff1d6c3dbad6b0e76e4d788dda33efa3b.zip
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 llvm-svn: 224415
Diffstat (limited to 'llvm/lib/MC/MCExpr.cpp')
-rw-r--r--llvm/lib/MC/MCExpr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp
index 6e648b22df1..6b69d1ccae3 100644
--- a/llvm/lib/MC/MCExpr.cpp
+++ b/llvm/lib/MC/MCExpr.cpp
@@ -353,6 +353,7 @@ 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("TOCBASE", VK_PPC_TOCBASE)
.Case("tocbase", VK_PPC_TOCBASE)
.Case("TOC", VK_PPC_TOC)
OpenPOWER on IntegriCloud