diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-07-22 20:15:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-07-22 20:15:21 +0000 |
commit | 0dcba2fadb990ba2298ba43d76372c754b240cee (patch) | |
tree | 76012f758dae9930ac7399a79185468e9769ad9f /include | |
parent | 9a05b98ef9ec58c52f35ce04677f24ef62a79701 (diff) | |
download | external_llvm-0dcba2fadb990ba2298ba43d76372c754b240cee.zip external_llvm-0dcba2fadb990ba2298ba43d76372c754b240cee.tar.gz external_llvm-0dcba2fadb990ba2298ba43d76372c754b240cee.tar.bz2 |
Recommit r186217 with testcase fix:
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@186863 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 9a27661..fd1d67b 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 e240a9a..04b2080 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) && |