Add supplementary output path handling for extracted compile-time-known values

This commit is contained in:
Artem Chikin
2022-07-19 10:58:45 -07:00
parent 10e7e4697f
commit b1fee939f1
21 changed files with 171 additions and 0 deletions

View File

@@ -1329,6 +1329,9 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
if (const Arg *A = Args.getLastArg(OPT_batch_scan_input_file))
Opts.BatchScanInputFilePath = A->getValue();
if (const Arg *A = Args.getLastArg(OPT_const_gather_protocols_file))
Opts.ConstGatherProtocolListFilePath = A->getValue();
for (auto A : Args.getAllArgValues(options::OPT_serialized_path_obfuscate)) {
auto SplitMap = StringRef(A).split('=');
Opts.DeserializedPathRecoverer.addMapping(SplitMap.first, SplitMap.second);