Adapt llvm rL360179: Option may have multiple OptionCategory's

This commit is contained in:
Fangrui Song 2019-05-08 07:45:17 -07:00
parent 4dd97d4e27
commit d472ffc46b

View File

@ -65,7 +65,11 @@ int main(int argc, char **argv) {
});
for (auto &I : TopLevelSubCommand->OptionsMap)
#if LLVM_VERSION_MAJOR >= 9 // rL360179
if (I.second->Categories[0] != &C)
#else
if (I.second->Category != &C)
#endif
I.second->setHiddenFlag(ReallyHidden);
ParseCommandLineOptions(argc, argv,