diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2017-01-06 23:18:09 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2017-01-06 23:18:09 +0000 |
commit | 7f873070c4b60ed1854caea29788603a630c4621 (patch) | |
tree | 9e8b6dd6d8c2ee6986a518377d5ee191753c8e45 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 25657e8c5d47e2bf9a79c265b47e8f8906b9882f (diff) | |
download | bcm5719-llvm-7f873070c4b60ed1854caea29788603a630c4621.tar.gz bcm5719-llvm-7f873070c4b60ed1854caea29788603a630c4621.zip |
Add a cc1 option to force disabling lifetime-markers emission from clang
Summary: This intended as a debugging/development flag only.
Differential Revision: https://reviews.llvm.org/D28385
llvm-svn: 291300
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 8dd1623ee2c..aa08a454e4e 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -312,7 +312,8 @@ void EmitAssemblyHelper::CreatePasses(legacy::PassManager &MPM, // At O0 and O1 we only run the always inliner which is more efficient. At // higher optimization levels we run the normal inliner. if (CodeGenOpts.OptimizationLevel <= 1) { - bool InsertLifetimeIntrinsics = CodeGenOpts.OptimizationLevel != 0; + bool InsertLifetimeIntrinsics = (CodeGenOpts.OptimizationLevel != 0 && + !CodeGenOpts.DisableLifetimeMarkers); PMBuilder.Inliner = createAlwaysInlinerLegacyPass(InsertLifetimeIntrinsics); } else { PMBuilder.Inliner = createFunctionInliningPass( |