From: Peter Collingbourne Date: Mon, 21 May 2018 20:16:41 +0000 (+0000) Subject: CodeGen: Add a dwo output file argument to addPassesToEmitFile and hook it up to... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0ed64bcd5021ab20a51c356753301897bdf47c0;p=clang CodeGen: Add a dwo output file argument to addPassesToEmitFile and hook it up to dwo output. Part of PR37466. Differential Revision: https://reviews.llvm.org/D47089 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332881 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 019010925b..2ed06cd708 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -718,7 +718,7 @@ bool EmitAssemblyHelper::AddEmitPasses(legacy::PassManager &CodeGenPasses, if (CodeGenOpts.OptimizationLevel > 0) CodeGenPasses.add(createObjCARCContractPass()); - if (TM->addPassesToEmitFile(CodeGenPasses, OS, CGFT, + if (TM->addPassesToEmitFile(CodeGenPasses, OS, nullptr, CGFT, /*DisableVerify=*/!CodeGenOpts.VerifyModule)) { Diags.Report(diag::err_fe_unable_to_interface_with_target); return false;