summaryrefslogtreecommitdiff
path: root/objectivec/objc.h
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-07-11 00:22:39 -0700
committerMark Rowe <mark@vector35.com>2025-07-13 10:23:39 -0700
commit0fa224901c638c7190a4bc2526f517a74ca04b4d (patch)
tree778902c1616b4aff2fd4a7516efa73d0fd15b2db /objectivec/objc.h
parent6706cc871072965ac7f3e16baa4273a9a27d1f8d (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.h9
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;