commit | 89c35fc44daf4b0a3608da50caaf8ec972565189 | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@hanshq.net> | Fri Feb 23 13:46:25 2018 +0000 |
committer | Hans Wennborg <hans@hanshq.net> | Fri Feb 23 13:46:25 2018 +0000 |
tree | a108f6b19465d21ba7f71b76d588faabb9790e44 | |
parent | c30034e574fb9543fcb37f0e899f254893f5a69b [diff] [blame] |
Support for the mno-stack-arg-probe flag Adds support for this flag. There is also another piece for clang (separate review). More info: https://bugs.llvm.org/show_bug.cgi?id=36221 By Ruslan Nikolaev! Differential Revision: https://reviews.llvm.org/D43107 llvm-svn: 325900
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 4ff864a..f438469 100644 --- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp +++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -209,7 +209,8 @@ F.getFnAttribute("stack-probe-size") .getValueAsString() .getAsInteger(0, StackProbeSize); - return StackSizeInBytes >= StackProbeSize; + return (StackSizeInBytes >= StackProbeSize) && + !F.hasFnAttribute("no-stack-arg-probe"); } namespace {