mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #30367 from adrian-prantl/sdk-5.3
Adapt to API change that moved Sysroot attribute to CompileUnit
This commit is contained in:
@@ -659,10 +659,8 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
StringRef Sysroot = IGM.Context.SearchPathOpts.SDKPath;
|
||||
llvm::DIModule *M =
|
||||
DBuilder.createModule(Parent, Name, ConfigMacros, RemappedIncludePath,
|
||||
Sysroot);
|
||||
DBuilder.createModule(Parent, Name, ConfigMacros, RemappedIncludePath);
|
||||
DIModuleCache.insert({Key, llvm::TrackingMDNodeRef(M)});
|
||||
return M;
|
||||
}
|
||||
@@ -1697,13 +1695,18 @@ IRGenDebugInfoImpl::IRGenDebugInfoImpl(const IRGenOptions &Opts,
|
||||
DBuilder.createFile(DebugPrefixMap.remapPath(SourcePath),
|
||||
DebugPrefixMap.remapPath(Opts.DebugCompilationDir));
|
||||
|
||||
StringRef Sysroot = IGM.Context.SearchPathOpts.SDKPath;
|
||||
TheCU = DBuilder.createCompileUnit(
|
||||
Lang, MainFile,
|
||||
Producer, Opts.shouldOptimize(), Opts.getDebugFlags(PD),
|
||||
MajorRuntimeVersion, SplitName,
|
||||
Opts.DebugInfoLevel > IRGenDebugInfoLevel::LineTables
|
||||
? llvm::DICompileUnit::FullDebug
|
||||
: llvm::DICompileUnit::LineTablesOnly);
|
||||
: llvm::DICompileUnit::LineTablesOnly,
|
||||
/* DWOId */ 0, /* SplitDebugInlining */ true,
|
||||
/* DebugInfoForProfiling */ false,
|
||||
llvm::DICompileUnit::DebugNameTableKind::Default,
|
||||
/* RangesBaseAddress */ false, Sysroot);
|
||||
|
||||
// Because the swift compiler relies on Clang to setup the Module,
|
||||
// the clang CU is always created first. Several dwarf-reading
|
||||
|
||||
Reference in New Issue
Block a user