[cfe-commits] r43585 - /cfe/trunk/Driver/RewriteTest.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Oct 31 15:57:04 PDT 2007
Author: fjahanian
Date: Wed Oct 31 17:57:04 2007
New Revision: 43585
URL: http://llvm.org/viewvc/llvm-project?rev=43585&view=rev
Log:
Changed direction of assert. Added more comments.
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=43585&r1=43584&r2=43585&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Wed Oct 31 17:57:04 2007
@@ -271,7 +271,7 @@
// Mark this typedef as having been generated.
if (!ObjcForwardDecls.insert(ForwardDecl))
- assert(true && "typedef already output");
+ assert(false && "typedef already output");
}
// Replace the @class with typedefs corresponding to the classes.
@@ -551,6 +551,9 @@
}
int NumIvars = CDecl->getIntfDeclNumIvars();
+ // If no ivars and no root or if its root, directly or indirectly,
+ // have no ivars (thus not synthesize)
+ // then no need to synthesize this class either.
if (NumIvars <= 0 && (!RCDecl || !ObjcSynthesizedStructs.count(RCDecl)))
return;
@@ -602,7 +605,7 @@
Result += "};\n";
// Mark this struct as having been generated.
if (!ObjcSynthesizedStructs.insert(CDecl))
- assert(true && "struct already synthesize- SynthesizeObjcInternalStruct");
+ assert(false && "struct already synthesize- SynthesizeObjcInternalStruct");
}
// RewriteObjcMethodsMetaData - Rewrite methods metadata for instance or
More information about the cfe-commits
mailing list