diff options
| author | Mark Rowe <mark@vector35.com> | 2025-07-11 00:22:39 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-07-13 10:23:39 -0700 |
| commit | 0fa224901c638c7190a4bc2526f517a74ca04b4d (patch) | |
| tree | 778902c1616b4aff2fd4a7516efa73d0fd15b2db /objectivec/objc.h | |
| parent | 6706cc871072965ac7f3e16baa4273a9a27d1f8d (diff) | |
[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.
Diffstat (limited to 'objectivec/objc.h')
| -rw-r--r-- | objectivec/objc.h | 9 |
1 files changed, 6 insertions, 3 deletions
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<Type> id; + Ref<Type> sel; + Ref<Type> BOOL; + } m_types; + + struct TypeNames { QualifiedName nsInteger; QualifiedName nsuInteger; QualifiedName cgFloat; |
