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 | 58e8be847c4b33e40d2edf29c9d47763936580c5 (patch) | |
| tree | 581863b97bffdb4dd37d89eee05f4c47743852ba /llvm/lib/Target/Mips/MipsSubtarget.h | |
| parent | e5801bd220dfcaddbc0cbffe0b1f39656fb4b267 (diff) | |
| download | bcm5719-llvm-58e8be847c4b33e40d2edf29c9d47763936580c5.tar.gz bcm5719-llvm-58e8be847c4b33e40d2edf29c9d47763936580c5.zip | |
Restore some "small section" support code, reverting my patch from r76936.
llvm-svn: 78894
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h index 1d6f87d8c06..a254b6562c4 100644 --- a/llvm/lib/Target/Mips/MipsSubtarget.h +++ b/llvm/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; }; |

