diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-11-09 17:29:19 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-11-09 17:29:19 +0000 |
commit | 6002702b06f01741ffb0f93bef38bea8f4158a51 (patch) | |
tree | bf87a7415ed0ebc634a21a51f9ef2d64a609b98b /clang/lib/CodeGen/BackendUtil.cpp | |
parent | c280f418644243b5018cd7c981107198234df05a (diff) | |
download | llvm-6002702b06f01741ffb0f93bef38bea8f4158a51.zip llvm-6002702b06f01741ffb0f93bef38bea8f4158a51.tar.gz llvm-6002702b06f01741ffb0f93bef38bea8f4158a51.tar.bz2 |
[driver] Add a -mstrict-align compiler option for ARM targets.
rdar://12340498
llvm-svn: 167619
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 62f87c9..4fe5d81 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -401,6 +401,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) { Options.UseSoftFloat = CodeGenOpts.SoftFloat; Options.StackAlignmentOverride = CodeGenOpts.StackAlignment; Options.RealignStack = CodeGenOpts.StackRealignment; + Options.StrictAlign = CodeGenOpts.StrictAlign; Options.DisableTailCalls = CodeGenOpts.DisableTailCalls; Options.TrapFuncName = CodeGenOpts.TrapFuncName; Options.PositionIndependentExecutable = LangOpts.PIELevel != 0; |