From: David Blaikie Date: Thu, 16 Aug 2018 21:30:24 +0000 (+0000) Subject: Update for LLVM API change X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0701588514e268018cdf914a9f774fb41532fe12;p=clang Update for LLVM API change git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339941 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1265bba764..e6136d5157 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -579,7 +579,8 @@ void CGDebugInfo::CreateCompileUnit() { CGOpts.DwarfDebugFlags, RuntimeVers, CGOpts.EnableSplitDwarf ? "" : CGOpts.SplitDwarfFile, EmissionKind, 0 /* DWOid */, CGOpts.SplitDwarfInlining, CGOpts.DebugInfoForProfiling, - CGOpts.GnuPubnames); + CGOpts.GnuPubnames ? llvm::DICompileUnit::DebugNameTableKind::GNU + : llvm::DICompileUnit::DebugNameTableKind::Default); } llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {