summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-04-04 06:29:47 +0000
committerEric Christopher <echristo@gmail.com>2013-04-04 06:29:47 +0000
commit006208cfad5a771be54e490fa4a39defb7bafae6 (patch)
tree0f06a56d0ba531e0433de4d03c63bfcc737866d3 /clang/lib/CodeGen/BackendUtil.cpp
parent51b7ed4de55f1e4732a4f1875df36d0417322f63 (diff)
downloadbcm5719-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/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 019570ce231..45079c09898 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -457,6 +457,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
Options.TrapFuncName = CodeGenOpts.TrapFuncName;
Options.PositionIndependentExecutable = LangOpts.PIELevel != 0;
Options.SSPBufferSize = CodeGenOpts.SSPBufferSize;
+ Options.EnableSegmentedStacks = CodeGenOpts.EnableSegmentedStacks;
TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU,
FeaturesStr, Options,
OpenPOWER on IntegriCloud