Need to query the implementation, not the interface...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44633
91177308-0d34-0410-b5e6-
96231b3b80d8
// Set 'ivars' field for root class to 0. Objc1 runtime does not use it.
// 'info' field is initialized to CLS_META(2) for metaclass
Result += ", 0,2, sizeof(struct _objc_class), 0";
- if (CDecl->getNumClassMethods() > 0) {
+ if (IDecl->getNumClassMethods() > 0) {
Result += "\n\t, &_OBJC_CLASS_METHODS_";
- Result += CDecl->getName();
+ Result += IDecl->getName();
Result += "\n";
}
else