summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsSubtarget.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-07-21 18:52:34 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-07-21 18:52:34 +0000
commit91fd532eb9a18c0fd8d91b975226ef6b41c772ec (patch)
tree5441c955f34bb60888c218900906b1cca1483227 /lib/Target/Mips/MipsSubtarget.h
parent6116a73da420d9b414a34ce2599dc7f6476e23fc (diff)
downloadllvm-91fd532eb9a18c0fd8d91b975226ef6b41c772ec.tar.gz
llvm-91fd532eb9a18c0fd8d91b975226ef6b41c772ec.tar.bz2
llvm-91fd532eb9a18c0fd8d91b975226ef6b41c772ec.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.h')
-rw-r--r--lib/Target/Mips/MipsSubtarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h
index 5140e1eb22..c3a03e3bcd 100644
--- a/lib/Target/Mips/MipsSubtarget.h
+++ b/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