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.cpp | |
parent | 86e5f7b6f8cbe20ee564f3b566ce23419ac44ec4 (diff) |
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.cpp')
-rw-r--r-- | lib/Target/Mips/MipsSubtarget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.cpp b/lib/Target/Mips/MipsSubtarget.cpp index a85028cb96..956fe91754 100644 --- a/lib/Target/Mips/MipsSubtarget.cpp +++ b/lib/Target/Mips/MipsSubtarget.cpp @@ -17,6 +17,11 @@ #include "llvm/Support/CommandLine.h" using namespace llvm; +static cl::opt<unsigned> +SSThreshold("mips-ssection-threshold", cl::Hidden, + cl::desc("Small data and bss section threshold size (default=8)"), + cl::init(8)); + MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &FS, bool little) : MipsArchVersion(Mips1), MipsABI(O32), IsLittle(little), IsSingleFloat(false), @@ -30,6 +35,9 @@ MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &FS, // Parse features string. ParseSubtargetFeatures(FS, CPU); + // Small section size threshold + SSectionThreshold = SSThreshold; + // Is the target system Linux ? if (TT.find("linux") == std::string::npos) IsLinux = false; |