@@ -1663,7 +1663,8 @@ SymbolFileDWARF::GetCompUnitForDWARFCompUnit(DWARFCompileUnit &dwarf_cu) {
16631663}
16641664
16651665void SymbolFileDWARF::GetObjCMethods (
1666- ConstString class_name, llvm::function_ref<bool (DWARFDIE die)> callback) {
1666+ ConstString class_name,
1667+ llvm::function_ref<IterationAction(DWARFDIE die)> callback) {
16671668 m_index->GetObjCMethods (class_name, callback);
16681669}
16691670
@@ -2993,18 +2994,18 @@ TypeSP SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(
29932994 // Don't try and resolve the DIE we are looking for with the DIE
29942995 // itself!
29952996 if (type_die == die || !IsStructOrClassTag (type_die.Tag ()))
2996- return true ;
2997+ return IterationAction::Continue ;
29972998
29982999 if (must_be_implementation) {
29993000 const bool try_resolving_type = type_die.GetAttributeValueAsUnsigned (
30003001 DW_AT_APPLE_objc_complete_type, 0 );
30013002 if (!try_resolving_type)
3002- return true ;
3003+ return IterationAction::Continue ;
30033004 }
30043005
30053006 Type *resolved_type = ResolveType (type_die, false , true );
30063007 if (!resolved_type || resolved_type == DIE_IS_BEING_PARSED)
3007- return true ;
3008+ return IterationAction::Continue ;
30083009
30093010 DEBUG_PRINTF (
30103011 " resolved 0x%8.8" PRIx64 " from %s to 0x%8.8" PRIx64
@@ -3016,7 +3017,7 @@ TypeSP SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(
30163017 if (die)
30173018 GetDIEToType ()[die.GetDIE ()] = resolved_type;
30183019 type_sp = resolved_type->shared_from_this ();
3019- return false ;
3020+ return IterationAction::Stop ;
30203021 });
30213022 return type_sp;
30223023}
0 commit comments