diff options
Diffstat (limited to 'libobjc/class.c')
-rw-r--r-- | libobjc/class.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libobjc/class.c b/libobjc/class.c index edc56aa9ec4..3b750829f3b 100644 --- a/libobjc/class.c +++ b/libobjc/class.c @@ -764,6 +764,15 @@ objc_get_meta_class (const char *name) return objc_get_class (name)->class_pointer; } +/* This is not used by GCC, but the clang compiler seems to use it + when targetting the GNU runtime. That's wrong, but we have it to + be compatible. */ +Class +objc_lookup_class (const char *name) +{ + return objc_getClass (name); +} + /* This is used when the implementation of a method changes. It goes through all classes, looking for the ones that have these methods (either method_a or method_b; method_b can be NULL), and reloads |