diff options
author | Leonard Chan <leonardchan@google.com> | 2019-08-21 17:24:14 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2019-08-21 17:24:14 +0000 |
commit | 19ec31d1a5f50bd5aa5843c96428b79e2863ffd4 (patch) | |
tree | 8568d66cb84f8ce1583880e0a189d6d622cdc20b /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 01a413695c980613c8d737e7bba79131a6adc8a5 (diff) | |
download | bcm5719-llvm-19ec31d1a5f50bd5aa5843c96428b79e2863ffd4.tar.gz bcm5719-llvm-19ec31d1a5f50bd5aa5843c96428b79e2863ffd4.zip |
[LTO] Always mark regular LTO units with EnableSplitLTOUnit=1 under the new pass manager
Match the behavior of D65009 under the new pass manager. This addresses
the test clang/test/CodeGen/split-lto-unit.c when running under the new
PM.
Differential Revision: https://reviews.llvm.org/D66488
llvm-svn: 369550
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index e6cbd6490d2..2932fb0fe82 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -1291,7 +1291,7 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager( if (!TheModule->getModuleFlag("ThinLTO")) TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", - CodeGenOpts.EnableSplitLTOUnit); + uint32_t(1)); } MPM.addPass( BitcodeWriterPass(*OS, CodeGenOpts.EmitLLVMUseLists, EmitLTOSummary)); |