diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2021-04-27 09:58:42 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2021-04-27 10:12:58 -0700 |
commit | ea8416bf4df4e2823d85d50d8ddd69dd8ed54720 (patch) | |
tree | 16426ea6185190d920d230172a62f56d1a72a289 /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | 4cf942adab0c0b35d933839b7a8cda37e6d646e8 (diff) | |
download | llvm-ea8416bf4df4e2823d85d50d8ddd69dd8ed54720.zip llvm-ea8416bf4df4e2823d85d50d8ddd69dd8ed54720.tar.gz llvm-ea8416bf4df4e2823d85d50d8ddd69dd8ed54720.tar.bz2 |
[CodeGenOptions] make StackProtectorGuardOffset signed
GCC supports negative values for -mstack-protector-guard-offset=, this
should be a signed value. Pre-req to D100919.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D101325
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CommandFlags.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp index 76d8719..4c6c595 100644 --- a/llvm/lib/CodeGen/CommandFlags.cpp +++ b/llvm/lib/CodeGen/CommandFlags.cpp @@ -80,7 +80,7 @@ CGOPT(bool, IgnoreXCOFFVisibility) CGOPT(bool, XCOFFTracebackTable) CGOPT(std::string, BBSections) CGOPT(std::string, StackProtectorGuard) -CGOPT(unsigned, StackProtectorGuardOffset) +CGOPT(int, StackProtectorGuardOffset) CGOPT(std::string, StackProtectorGuardReg) CGOPT(unsigned, TLSSize) CGOPT(bool, EmulatedTLS) @@ -375,9 +375,9 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() { cl::init("none")); CGBINDOPT(StackProtectorGuardReg); - static cl::opt<unsigned> StackProtectorGuardOffset( + static cl::opt<int> StackProtectorGuardOffset( "stack-protector-guard-offset", cl::desc("Stack protector guard offset"), - cl::init((unsigned)-1)); + cl::init(INT_MAX)); CGBINDOPT(StackProtectorGuardOffset); static cl::opt<unsigned> TLSSize( |