Skip to content

Commit e5bb87c

Browse files
committed
make the old -fdepscan-prefix-map= option driver-only
1 parent 81e58f3 commit e5bb87c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8836,7 +8836,7 @@ def fdepscan_include_tree : Flag<["-"], "fdepscan-include-tree">,
88368836
//
88378837
// FIXME: Add DepscanOption flag.
88388838
def fdepscan_prefix_map_EQ : Joined<["-"], "fdepscan-prefix-map=">,
8839-
Group<f_Group>, Visibility<[ClangOption, CC1Option]>,
8839+
Group<f_Group>, Visibility<[ClangOption]>,
88408840
MetaVarName<"<old>=<new>">,
88418841
HelpText<"With -fdepscan, seamlessly filter the CAS filesystem to"
88428842
" apply the given prefix, updating the command-line to match.">;

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,12 +3391,6 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
33913391
assert(Values.size() == 2);
33923392
Opts.PathPrefixMappings.emplace_back(Values[0], Values[1]);
33933393
}
3394-
for (const Arg *A : Args.filtered(OPT_fdepscan_prefix_map_EQ)) {
3395-
StringRef Val = A->getValue();
3396-
if (std::optional<llvm::MappedPrefix> mapping = llvm::MappedPrefix::getFromJoined(Val)) {
3397-
Opts.PathPrefixMappings.emplace_back(mapping->Old, mapping->New);
3398-
}
3399-
}
34003394

34013395
if (Opts.ProgramAction != frontend::GenerateModule && Opts.IsSystemModule)
34023396
Diags.Report(diag::err_drv_argument_only_allowed_with) << "-fsystem-module"

0 commit comments

Comments
 (0)