@@ -659,10 +659,8 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
659
659
}
660
660
}
661
661
662
- StringRef Sysroot = IGM.Context .SearchPathOpts .SDKPath ;
663
662
llvm::DIModule *M =
664
- DBuilder.createModule (Parent, Name, ConfigMacros, RemappedIncludePath,
665
- Sysroot);
663
+ DBuilder.createModule (Parent, Name, ConfigMacros, RemappedIncludePath);
666
664
DIModuleCache.insert ({Key, llvm::TrackingMDNodeRef (M)});
667
665
return M;
668
666
}
@@ -1697,13 +1695,18 @@ IRGenDebugInfoImpl::IRGenDebugInfoImpl(const IRGenOptions &Opts,
1697
1695
DBuilder.createFile (DebugPrefixMap.remapPath (SourcePath),
1698
1696
DebugPrefixMap.remapPath (Opts.DebugCompilationDir ));
1699
1697
1698
+ StringRef Sysroot = IGM.Context .SearchPathOpts .SDKPath ;
1700
1699
TheCU = DBuilder.createCompileUnit (
1701
1700
Lang, MainFile,
1702
1701
Producer, Opts.shouldOptimize (), Opts.getDebugFlags (PD),
1703
1702
MajorRuntimeVersion, SplitName,
1704
1703
Opts.DebugInfoLevel > IRGenDebugInfoLevel::LineTables
1705
1704
? llvm::DICompileUnit::FullDebug
1706
- : llvm::DICompileUnit::LineTablesOnly);
1705
+ : llvm::DICompileUnit::LineTablesOnly,
1706
+ /* DWOId */ 0 , /* SplitDebugInlining */ true ,
1707
+ /* DebugInfoForProfiling */ false ,
1708
+ llvm::DICompileUnit::DebugNameTableKind::Default,
1709
+ /* RangesBaseAddress */ false , Sysroot);
1707
1710
1708
1711
// Because the swift compiler relies on Clang to setup the Module,
1709
1712
// the clang CU is always created first. Several dwarf-reading
0 commit comments