diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-07-12 22:25:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-07-12 22:25:20 +0000 |
commit | 8a50013cc23810aa3e1ac8da66764fbb2d96147e (patch) | |
tree | 101213d40e04c54fcc8c4d82eef0205e9847de89 /tools | |
parent | 6383ef98fae2bab4595c6c36394093b7ad4a5597 (diff) | |
download | external_llvm-8a50013cc23810aa3e1ac8da66764fbb2d96147e.zip external_llvm-8a50013cc23810aa3e1ac8da66764fbb2d96147e.tar.gz external_llvm-8a50013cc23810aa3e1ac8da66764fbb2d96147e.tar.bz2 |
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')
-rw-r--r-- | tools/llc/llc.cpp | 1 | ||||
-rw-r--r-- | tools/lto/LTOModule.cpp | 6 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index bcabafc..9f6be81 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -280,7 +280,6 @@ static int compileModule(char **argv, LLVMContext &Context) { Options.PositionIndependentExecutable = EnablePIE; Options.EnableSegmentedStacks = SegmentedStacks; Options.UseInitArray = UseInitArray; - Options.SSPBufferSize = SSPBufferSize; OwningPtr<TargetMachine> target(TheTarget->createTargetMachine(TheTriple.getTriple(), diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 6220dd1..5ee43ba 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, diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 6fc8d67..fa1cd43 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -510,7 +510,6 @@ static TargetOptions GetTargetOptions() { Options.PositionIndependentExecutable = EnablePIE; Options.EnableSegmentedStacks = SegmentedStacks; Options.UseInitArray = UseInitArray; - Options.SSPBufferSize = SSPBufferSize; return Options; } |