Revert r205194 - [mips] Removed R_MIPS_GOT. It's identical to R_MIPS_GOT16.

There's a couple additional bits I missed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Sanders 2014-03-31 14:34:36 +00:00
parent 1200528f17
commit 1df2ed27dd
3 changed files with 3 additions and 1 deletions

View File

@ -839,6 +839,7 @@ enum {
R_MIPS_GPREL16 = 7, R_MIPS_GPREL16 = 7,
R_MIPS_LITERAL = 8, R_MIPS_LITERAL = 8,
R_MIPS_GOT16 = 9, R_MIPS_GOT16 = 9,
R_MIPS_GOT = 9,
R_MIPS_PC16 = 10, R_MIPS_PC16 = 10,
R_MIPS_CALL16 = 11, R_MIPS_CALL16 = 11,
R_MIPS_GPREL32 = 12, R_MIPS_GPREL32 = 12,

View File

@ -144,6 +144,7 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) {
case MCSymbolRefExpr::VK_Mips_GPREL: OS << "%gp_rel("; break; case MCSymbolRefExpr::VK_Mips_GPREL: OS << "%gp_rel("; break;
case MCSymbolRefExpr::VK_Mips_GOT_CALL: OS << "%call16("; break; case MCSymbolRefExpr::VK_Mips_GOT_CALL: OS << "%call16("; break;
case MCSymbolRefExpr::VK_Mips_GOT16: OS << "%got("; 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_HI: OS << "%hi("; break;
case MCSymbolRefExpr::VK_Mips_ABS_LO: OS << "%lo("; break; case MCSymbolRefExpr::VK_Mips_ABS_LO: OS << "%lo("; break;
case MCSymbolRefExpr::VK_Mips_TLSGD: OS << "%tlsgd("; break; case MCSymbolRefExpr::VK_Mips_TLSGD: OS << "%tlsgd("; break;

View File

@ -13,7 +13,7 @@
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT_LO16 // 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_HI16
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_CALL_LO16 // CHECK: 0x{{[0-9,A-F]+}} R_MIPS_CALL_LO16
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT16 // CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT
// CHECK: 0x{{[0-9,A-F]+}} R_MIPS_LO16 // CHECK: 0x{{[0-9,A-F]+}} R_MIPS_LO16
// CHECK: ] // CHECK: ]