mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Add HIGHER and HIGHEST relocations to Mips backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fef904d0e8
commit
b22c9289b0
@ -126,6 +126,8 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) {
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_DISP: OS << "%got_disp("; break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_PAGE: OS << "%got_page("; break;
|
||||
case MCSymbolRefExpr::VK_Mips_GOT_OFST: OS << "%got_ofst("; break;
|
||||
case MCSymbolRefExpr::VK_Mips_HIGHER: OS << "%higher("; break;
|
||||
case MCSymbolRefExpr::VK_Mips_HIGHEST: OS << "%highest("; break;
|
||||
}
|
||||
|
||||
OS << SRE->getSymbol();
|
||||
|
@ -79,7 +79,10 @@ namespace MipsII {
|
||||
MO_GPOFF_LO,
|
||||
MO_GOT_DISP,
|
||||
MO_GOT_PAGE,
|
||||
MO_GOT_OFST
|
||||
MO_GOT_OFST,
|
||||
|
||||
MO_HIGHER,
|
||||
MO_HIGHEST
|
||||
};
|
||||
|
||||
enum {
|
||||
|
@ -61,6 +61,8 @@ MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO,
|
||||
case MipsII::MO_GOT_DISP: Kind = MCSymbolRefExpr::VK_Mips_GOT_DISP; break;
|
||||
case MipsII::MO_GOT_PAGE: Kind = MCSymbolRefExpr::VK_Mips_GOT_PAGE; break;
|
||||
case MipsII::MO_GOT_OFST: Kind = MCSymbolRefExpr::VK_Mips_GOT_OFST; break;
|
||||
case MipsII::MO_HIGHER: Kind = MCSymbolRefExpr::VK_Mips_HIGHER; break;
|
||||
case MipsII::MO_HIGHEST: Kind = MCSymbolRefExpr::VK_Mips_HIGHEST; break;
|
||||
}
|
||||
|
||||
switch (MOTy) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user