diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-04-04 06:29:47 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-04-04 06:29:47 +0000 |
| commit | 006208cfad5a771be54e490fa4a39defb7bafae6 (patch) | |
| tree | 0f06a56d0ba531e0433de4d03c63bfcc737866d3 /clang/lib/Driver/Tools.cpp | |
| parent | 51b7ed4de55f1e4732a4f1875df36d0417322f63 (diff) | |
| download | bcm5719-llvm-006208cfad5a771be54e490fa4a39defb7bafae6.tar.gz bcm5719-llvm-006208cfad5a771be54e490fa4a39defb7bafae6.zip | |
Plumb through the -fsplit-stack option using the existing backend
support.
Caveat: Other than the existing segmented stacks support, no
claims are made of this working.
llvm-svn: 178744
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 5ddb95c0224..83c140d2b31 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -2112,6 +2112,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_optimize_sibling_calls)) CmdArgs.push_back("-mdisable-tail-calls"); + // Handle segmented stacks. + if (Args.hasArg(options::OPT_fsplit_stack)) + CmdArgs.push_back("-split-stacks"); + // Handle various floating point optimization flags, mapping them to the // appropriate LLVM code generation flags. The pattern for all of these is to // default off the codegen optimizations, and if any flag enables them and no |

