@@ -2213,23 +2213,15 @@ static void ParseSymbolGraphArgs(symbolgraphgen::SymbolGraphOptions &Opts,
2213
2213
Opts.MinimumAccessLevel = AccessLevel::Public;
2214
2214
}
2215
2215
2216
- if (auto *A = Args.getLastArg (OPT_symbol_graph_allow_availability_platforms)) {
2216
+ if (auto *A = Args.getLastArg (OPT_symbol_graph_allow_availability_platforms,
2217
+ OPT_symbol_graph_block_availability_platforms)) {
2217
2218
llvm::SmallVector<StringRef> AvailabilityPlatforms;
2218
2219
StringRef (A->getValue ())
2219
2220
.split (AvailabilityPlatforms, ' ,' , /* MaxSplits*/ -1 ,
2220
2221
/* KeepEmpty*/ false );
2221
2222
Opts.AvailabilityPlatforms = llvm::DenseSet<StringRef>(
2222
2223
AvailabilityPlatforms.begin (), AvailabilityPlatforms.end ());
2223
- Opts.AvailabilityIsBlockList = false ;
2224
- } else if (auto *A = Args.getLastArg (
2225
- OPT_symbol_graph_block_availability_platforms)) {
2226
- llvm::SmallVector<StringRef> AvailabilityPlatforms;
2227
- StringRef (A->getValue ())
2228
- .split (AvailabilityPlatforms, ' ,' , /* MaxSplits*/ -1 ,
2229
- /* KeepEmpty*/ false );
2230
- Opts.AvailabilityPlatforms = llvm::DenseSet<StringRef>(
2231
- AvailabilityPlatforms.begin (), AvailabilityPlatforms.end ());
2232
- Opts.AvailabilityIsBlockList = true ;
2224
+ Opts.AvailabilityIsBlockList = A->getOption ().matches (OPT_symbol_graph_block_availability_platforms);
2233
2225
}
2234
2226
2235
2227
// default values for generating symbol graphs during a build
0 commit comments