aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-07-21 02:15:19 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-07-21 02:15:19 +0000
commitb7dd9fc678ab4b4c57d333cd9940b0e0d7952ea6 (patch)
treeb2f0f1461d212b4f4f56cf1962230041277734ae /lib/MC
parentc606c3ff911eddcbf8bab95e67c7d8c1f69a493e (diff)
downloadexternal_llvm-b7dd9fc678ab4b4c57d333cd9940b0e0d7952ea6.zip
external_llvm-b7dd9fc678ab4b4c57d333cd9940b0e0d7952ea6.tar.gz
external_llvm-b7dd9fc678ab4b4c57d333cd9940b0e0d7952ea6.tar.bz2
Add VK_Mips_HIGHER and VK_Mips_HIGHEST to MCSymbolRefExpr::VariantKind.
Test case will be added later when long branch patch is checked in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp
index 039943a..0eb7fcc 100644
--- a/lib/MC/MCExpr.cpp
+++ b/lib/MC/MCExpr.cpp
@@ -222,6 +222,8 @@ StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) {
case VK_Mips_GOT_DISP: return "GOT_DISP";
case VK_Mips_GOT_PAGE: return "GOT_PAGE";
case VK_Mips_GOT_OFST: return "GOT_OFST";
+ case VK_Mips_HIGHER: return "HIGHER";
+ case VK_Mips_HIGHEST: return "HIGHEST";
}
llvm_unreachable("Invalid variant kind");
}