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 /include | |
parent | 6383ef98fae2bab4595c6c36394093b7ad4a5597 (diff) | |
download | llvm-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 'include')
-rw-r--r-- | include/llvm/CodeGen/CommandFlags.h | 4 | ||||
-rw-r--r-- | include/llvm/Target/TargetOptions.h | 7 |
2 files changed, 1 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/CommandFlags.h b/include/llvm/CodeGen/CommandFlags.h index 9a27661b51..fd1d67bdcd 100644 --- a/include/llvm/CodeGen/CommandFlags.h +++ b/include/llvm/CodeGen/CommandFlags.h @@ -220,8 +220,4 @@ cl::opt<std::string> StartAfter("start-after", cl::value_desc("pass-name"), cl::init("")); -cl::opt<unsigned> -SSPBufferSize("stack-protector-buffer-size", cl::init(8), - cl::desc("Lower bound for a buffer to be considered for " - "stack protection")); #endif diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index e240a9aeed..04b2080106 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -48,7 +48,7 @@ namespace llvm { UseSoftFloat(false), NoZerosInBSS(false), JITEmitDebugInfo(false), JITEmitDebugInfoToDisk(false), GuaranteedTailCallOpt(false), DisableTailCalls(false), - StackAlignmentOverride(0), RealignStack(true), SSPBufferSize(0), + StackAlignmentOverride(0), RealignStack(true), EnableFastISel(false), PositionIndependentExecutable(false), EnableSegmentedStacks(false), UseInitArray(false), TrapFuncName(""), FloatABIType(FloatABI::Default), AllowFPOpFusion(FPOpFusion::Standard) @@ -151,10 +151,6 @@ namespace llvm { /// automatically realigned, if needed. unsigned RealignStack : 1; - /// SSPBufferSize - The minimum size of buffers that will receive stack - /// smashing protection when -fstack-protection is used. - unsigned SSPBufferSize; - /// EnableFastISel - This flag enables fast-path instruction selection /// which trades away generated code quality in favor of reducing /// compile time. @@ -224,7 +220,6 @@ inline bool operator==(const TargetOptions &LHS, ARE_EQUAL(DisableTailCalls) && ARE_EQUAL(StackAlignmentOverride) && ARE_EQUAL(RealignStack) && - ARE_EQUAL(SSPBufferSize) && ARE_EQUAL(EnableFastISel) && ARE_EQUAL(PositionIndependentExecutable) && ARE_EQUAL(EnableSegmentedStacks) && |