@@ -1676,7 +1676,8 @@ SymbolFileDWARF::GetCompUnitForDWARFCompUnit(DWARFCompileUnit &dwarf_cu) {
16761676}
16771677
16781678void SymbolFileDWARF::GetObjCMethods (
1679- ConstString class_name, llvm::function_ref<bool (DWARFDIE die)> callback) {
1679+ ConstString class_name,
1680+ llvm::function_ref<IterationAction(DWARFDIE die)> callback) {
16801681 m_index->GetObjCMethods (class_name, callback);
16811682}
16821683
@@ -3028,18 +3029,18 @@ TypeSP SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(
30283029 // Don't try and resolve the DIE we are looking for with the DIE
30293030 // itself!
30303031 if (type_die == die || !IsStructOrClassTag (type_die.Tag ()))
3031- return true ;
3032+ return IterationAction::Continue ;
30323033
30333034 if (must_be_implementation) {
30343035 const bool try_resolving_type = type_die.GetAttributeValueAsUnsigned (
30353036 DW_AT_APPLE_objc_complete_type, 0 );
30363037 if (!try_resolving_type)
3037- return true ;
3038+ return IterationAction::Continue ;
30383039 }
30393040
30403041 Type *resolved_type = ResolveType (type_die, false , true );
30413042 if (!resolved_type || resolved_type == DIE_IS_BEING_PARSED)
3042- return true ;
3043+ return IterationAction::Continue ;
30433044
30443045 DEBUG_PRINTF (
30453046 " resolved 0x%8.8" PRIx64 " from %s to 0x%8.8" PRIx64
@@ -3051,7 +3052,7 @@ TypeSP SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(
30513052 if (die)
30523053 GetDIEToType ()[die.GetDIE ()] = resolved_type;
30533054 type_sp = resolved_type->shared_from_this ();
3054- return false ;
3055+ return IterationAction::Stop ;
30553056 });
30563057 return type_sp;
30573058}
0 commit comments