From 0fa224901c638c7190a4bc2526f517a74ca04b4d Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Fri, 11 Jul 2025 00:22:39 -0700 Subject: [ObjC] Use NamedTypeReference to refer to id / SEL / BOOL Rather than introducing duplicate definitions of these types, use a NamedTypeReference that will be resolved to the type from the libobjc type library when it is loaded. This prevents these types from showing up as id_1 / SEL_1 in some places rather than as their expected names. --- objectivec/objc.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'objectivec/objc.h') diff --git a/objectivec/objc.h b/objectivec/objc.h index 6d194971..e0b2167e 100644 --- a/objectivec/objc.h +++ b/objectivec/objc.h @@ -252,9 +252,12 @@ namespace BinaryNinja { class ObjCProcessor { struct Types { - QualifiedName id; - QualifiedName sel; - QualifiedName BOOL; + Ref id; + Ref sel; + Ref BOOL; + } m_types; + + struct TypeNames { QualifiedName nsInteger; QualifiedName nsuInteger; QualifiedName cgFloat; -- cgit v1.3.1