summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-02-23 13:46:25 +0000
committerHans Wennborg <hans@hanshq.net>2018-02-23 13:46:25 +0000
commit89c35fc44daf4b0a3608da50caaf8ec972565189 (patch)
treea108f6b19465d21ba7f71b76d588faabb9790e44 /llvm/lib/Target/X86/X86ISelLowering.cpp
parentc30034e574fb9543fcb37f0e899f254893f5a69b (diff)
downloadbcm5719-llvm-89c35fc44daf4b0a3608da50caaf8ec972565189.tar.gz
bcm5719-llvm-89c35fc44daf4b0a3608da50caaf8ec972565189.zip
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
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 0f9f9bf1b83..e0767c856f2 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -39186,7 +39186,8 @@ StringRef X86TargetLowering::getStackProbeSymbolName(MachineFunction &MF) const
// Generally, if we aren't on Windows, the platform ABI does not include
// support for stack probes, so don't emit them.
- if (!Subtarget.isOSWindows() || Subtarget.isTargetMachO())
+ if (!Subtarget.isOSWindows() || Subtarget.isTargetMachO() ||
+ MF.getFunction().hasFnAttribute("no-stack-arg-probe"))
return "";
// We need a stack probe to conform to the Windows ABI. Choose the right
OpenPOWER on IntegriCloud