From a104300dbecdf473bd2d4f104649e528813ca6ec Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Mon, 31 Mar 2014 14:30:05 +0000 Subject: [PATCH] [mips] Removed R_MIPS_GOT. It's identical to R_MIPS_GOT16. llvm-svn: 205194 --- llvm/include/llvm/Support/ELF.h | 1 - llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | 1 - llvm/test/MC/Mips/xgot.s | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/include/llvm/Support/ELF.h b/llvm/include/llvm/Support/ELF.h index f7fa1f5cc87d..2ac425914366 100644 --- a/llvm/include/llvm/Support/ELF.h +++ b/llvm/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/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp index c8f08f1fea27..416c0414ea0d 100644 --- a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp +++ b/llvm/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/llvm/test/MC/Mips/xgot.s b/llvm/test/MC/Mips/xgot.s index e9c2eaa587a9..ec564c617a35 100644 --- a/llvm/test/MC/Mips/xgot.s +++ b/llvm/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: ]