From e5d1fcfe4e75e3716636f450b6cf50e5f10bc0b9 Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Mon, 21 Jul 2008 18:52:34 +0000 Subject: Added initial support for small sections on Mips. Added gp_rel relocations to support addressing small section contents. Added command line to specify small section threshold in bytes. llvm-svn: 53869 --- llvm/lib/Target/Mips/MipsSubtarget.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h') diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h index 5140e1eb22d..c3a03e3bcda 100644 --- a/llvm/lib/Target/Mips/MipsSubtarget.h +++ b/llvm/lib/Target/Mips/MipsSubtarget.h @@ -71,6 +71,10 @@ protected: // isLinux - Target system is Linux. Is false we consider ELFOS for now. bool IsLinux; + // Put global and static items less than or equal to SSectionThreshold + // bytes into the small data or bss section. The default is 8. + unsigned SSectionThreshold; + InstrItineraryData InstrItins; public: @@ -102,6 +106,7 @@ public: bool hasABICall() const { return HasABICall; }; bool hasAbsoluteCall() const { return HasAbsoluteCall; }; bool isLinux() const { return IsLinux; }; + unsigned getSSectionThreshold() const { return SSectionThreshold; } }; } // End llvm namespace -- cgit v1.2.3