summaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-07-12 22:25:20 +0000
committerBill Wendling <isanbard@gmail.com>2013-07-12 22:25:20 +0000
commit8a50013cc23810aa3e1ac8da66764fbb2d96147e (patch)
tree101213d40e04c54fcc8c4d82eef0205e9847de89 /tools/lto
parent6383ef98fae2bab4595c6c36394093b7ad4a5597 (diff)
downloadllvm-8a50013cc23810aa3e1ac8da66764fbb2d96147e.tar.gz
llvm-8a50013cc23810aa3e1ac8da66764fbb2d96147e.tar.bz2
llvm-8a50013cc23810aa3e1ac8da66764fbb2d96147e.tar.xz
Use the function attributes to pass along the stack protector buffer size.
Now that we have robust function attributes, don't use a command line option to specify the stack protecto buffer size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOModule.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index 6220dd1c56..5ee43ba022 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -151,11 +151,6 @@ UseInitArray("use-init-array",
cl::desc("Use .init_array instead of .ctors."),
cl::init(false));
-static cl::opt<unsigned>
-SSPBufferSize("stack-protector-buffer-size", cl::init(8),
- cl::desc("Lower bound for a buffer to be considered for "
- "stack protection"));
-
LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t)
: _module(m), _target(t),
_context(_target->getMCAsmInfo(), _target->getRegisterInfo(), NULL),
@@ -261,7 +256,6 @@ void LTOModule::getTargetOptions(TargetOptions &Options) {
Options.PositionIndependentExecutable = EnablePIE;
Options.EnableSegmentedStacks = SegmentedStacks;
Options.UseInitArray = UseInitArray;
- Options.SSPBufferSize = SSPBufferSize;
}
LTOModule *LTOModule::makeLTOModule(MemoryBuffer *buffer,