[cfe-commits] r44633 - /cfe/trunk/Driver/RewriteTest.cpp
Steve Naroff
snaroff at apple.com
Wed Dec 5 13:49:40 PST 2007
Author: snaroff
Date: Wed Dec 5 15:49:40 2007
New Revision: 44633
URL: http://llvm.org/viewvc/llvm-project?rev=44633&view=rev
Log:
Make sure the class methods get attached to the metaclass object.
Need to query the implementation, not the interface...
Modified:
cfe/trunk/Driver/RewriteTest.cpp
Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=44633&r1=44632&r2=44633&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Wed Dec 5 15:49:40 2007
@@ -2097,9 +2097,9 @@
// 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
More information about the cfe-commits
mailing list