diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-13 05:41:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-13 05:41:27 +0000 |
commit | e3736f86caae62b691ad5be960e724fe0bf52dbd (patch) | |
tree | dd51188e7ce17e143ecec687f9c4685569e14fdb /lib/Target/Mips/MipsSubtarget.h | |
parent | 86e5f7b6f8cbe20ee564f3b566ce23419ac44ec4 (diff) | |
download | llvm-e3736f86caae62b691ad5be960e724fe0bf52dbd.tar.gz llvm-e3736f86caae62b691ad5be960e724fe0bf52dbd.tar.bz2 llvm-e3736f86caae62b691ad5be960e724fe0bf52dbd.tar.xz |
Restore some "small section" support code, reverting my patch from r76936.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.h')
-rw-r--r-- | lib/Target/Mips/MipsSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h index 1d6f87d8c0..a254b6562c 100644 --- a/lib/Target/Mips/MipsSubtarget.h +++ b/lib/Target/Mips/MipsSubtarget.h @@ -60,6 +60,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; + /// Features related to the presence of specific instructions. // HasSEInReg - SEB and SEH (signext in register) instructions. @@ -109,6 +113,7 @@ public: bool isNotSingleFloat() const { return !IsSingleFloat; }; bool hasVFPU() const { return HasVFPU; }; bool isLinux() const { return IsLinux; }; + unsigned getSSectionThreshold() const { return SSectionThreshold; } /// Features related to the presence of specific instructions. bool hasSEInReg() const { return HasSEInReg; }; |