diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-09-11 18:55:09 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-09-11 18:55:09 +0000 |
commit | aecca041c96b2e5e13a0d77f09ee5aa294e8ba06 (patch) | |
tree | 993e9027889677cc59a4e9fd7bbb33a02a54dc58 /clang/lib/CodeGen | |
parent | bc497c93f5182757dc220b7bea5bd9801a47138b (diff) | |
download | bcm5719-llvm-aecca041c96b2e5e13a0d77f09ee5aa294e8ba06.tar.gz bcm5719-llvm-aecca041c96b2e5e13a0d77f09ee5aa294e8ba06.zip |
Record function attribute "stackrealign" instead of using backend option
-force-align-stack.
Also, make changes to the driver so that -mno-stack-realign is no longer
an option exposed to the end-user that disallows stack realignment in
the backend.
Differential Revision: http://reviews.llvm.org/D11815
llvm-svn: 247451
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index e544ec5c408..fc1e8b9f192 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -1494,8 +1494,8 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, FuncAttrs.addAttribute("stack-protector-buffer-size", llvm::utostr(CodeGenOpts.SSPBufferSize)); - if (!CodeGenOpts.StackRealignment) - FuncAttrs.addAttribute("no-realign-stack"); + if (CodeGenOpts.StackRealignment) + FuncAttrs.addAttribute("stackrealign"); // Add target-cpu and target-features attributes to functions. If // we have a decl for the function and it has a target attribute then |