summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-03-31 14:30:05 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-03-31 14:30:05 +0000
commit1200528f1710b3d96f27455a6e0cc25e8e6d09ba (patch)
tree9420d04b95c89c8141c6f73b590510d3ac71ebae
parent1c289ab6bbf9f06c11fb296ff8d2ef9e344e5654 (diff)
downloadllvm-1200528f1710b3d96f27455a6e0cc25e8e6d09ba.tar.gz
llvm-1200528f1710b3d96f27455a6e0cc25e8e6d09ba.tar.bz2
llvm-1200528f1710b3d96f27455a6e0cc25e8e6d09ba.tar.xz
[mips] Removed R_MIPS_GOT. It's identical to R_MIPS_GOT16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205194 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/ELF.h1
-rw-r--r--lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp1
-rw-r--r--test/MC/Mips/xgot.s2
3 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index f7fa1f5cc8..2ac4259143 100644
--- a/include/llvm/Support/ELF.h
+++ b/include/llvm/Support/ELF.h
@@ -839,7 +839,6 @@ enum {
R_MIPS_GPREL16 = 7,
R_MIPS_LITERAL = 8,
R_MIPS_GOT16 = 9,
- R_MIPS_GOT = 9,
R_MIPS_PC16 = 10,
R_MIPS_CALL16 = 11,
R_MIPS_GPREL32 = 12,
diff --git a/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
index c8f08f1fea..416c0414ea 100644
--- a/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
+++ b/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
@@ -144,7 +144,6 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) {
case MCSymbolRefExpr::VK_Mips_GPREL: OS << "%gp_rel("; break;
case MCSymbolRefExpr::VK_Mips_GOT_CALL: OS << "%call16("; break;
case MCSymbolRefExpr::VK_Mips_GOT16: OS << "%got("; break;
- case MCSymbolRefExpr::VK_Mips_GOT: OS << "%got("; break;
case MCSymbolRefExpr::VK_Mips_ABS_HI: OS << "%hi("; break;
case MCSymbolRefExpr::VK_Mips_ABS_LO: OS << "%lo("; break;
case MCSymbolRefExpr::VK_Mips_TLSGD: OS << "%tlsgd("; break;
diff --git a/test/MC/Mips/xgot.s b/test/MC/Mips/xgot.s
index e9c2eaa587..ec564c617a 100644
--- a/test/MC/Mips/xgot.s
+++ b/test/MC/Mips/xgot.s
@@ -13,7 +13,7 @@
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT_LO16
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_CALL_HI16
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_CALL_LO16
-// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT
+// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT16
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_LO16
// CHECK: ]