From: Rafael Espindola Date: Tue, 28 Oct 2014 00:29:51 +0000 (+0000) Subject: Update for LLVM API change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b775f9b9a594284eccb17428b32c7bd738aaaf9a;p=clang Update for LLVM API change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220742 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 0bd53b8da5..1eb59bdac9 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -154,7 +154,7 @@ namespace clang { // Link LinkModule into this module if present, preserving its validity. if (LinkModule) { if (Linker::LinkModules( - M, LinkModule.get(), Linker::PreserveSource, + M, LinkModule.get(), [=](const DiagnosticInfo &DI) { linkerDiagnosticHandler(DI); })) return; }