llvm.org GIT mirror llvm / 1b8de27
llvm-config: replace assertions with a helpful error message From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260700 91177308-0d34-0410-b5e6-96231b3b80d8 Mehdi Amini 3 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8282 const std::string &DirSep) {
8383 // Lookup the component.
8484 AvailableComponent *AC = ComponentMap.lookup(Name);
85 if (!AC) {
86 errs() << "Can't find component: '" << Name << "' in the map. Available components are: ";
87 for (const auto &Component : ComponentMap) {
88 errs() << "'" << Component.first() << "' ";
89 }
90 errs() << "\n";
91 report_fatal_error("abort");
92 }
8593 assert(AC && "Invalid component name!");
8694
8795 // Add to the visited table.