Merge pull request #85100 from adrian-prantl/163302154

Add a -debug-module-path frontend option
This commit is contained in:
Adrian Prantl
2025-11-03 12:30:55 -08:00
committed by GitHub
5 changed files with 23 additions and 3 deletions

View File

@@ -3462,6 +3462,9 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
A->getAsString(Args), A->getValue());
}
if (const Arg *A = Args.getLastArg(options::OPT_debug_module_path))
Opts.DebugModulePath = A->getValue();
for (auto A : Args.getAllArgValues(options::OPT_file_prefix_map)) {
auto SplitMap = StringRef(A).split('=');
Opts.FilePrefixMap.addMapping(SplitMap.first, SplitMap.second);