Update for LLVM API change
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 16 Aug 2018 21:30:24 +0000 (21:30 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 16 Aug 2018 21:30:24 +0000 (21:30 +0000)
llvm-svn: 339941

clang/lib/CodeGen/CGDebugInfo.cpp

index 1265bba..e6136d5 100644 (file)
@@ -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) {