[cfe-commits] r43454 - /cfe/trunk/Driver/RewriteTest.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Oct 29 10:16:26 PDT 2007
Author: fjahanian
Date: Mon Oct 29 12:16:25 2007
New Revision: 43454
URL: http://llvm.org/viewvc/llvm-project?rev=43454&view=rev
Log:
Do the encoding of ivar types in the ivar metadata.
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=43454&r1=43453&r2=43454&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Mon Oct 29 12:16:25 2007
@@ -836,15 +836,21 @@
: CDecl->getIntfDeclIvars();
Result += "\t,{{\"";
Result += Ivars[0]->getName();
- Result += "\", \"\", ";
+ Result += "\", \"";
+ std::string StrEncoding;
+ Context->getObjcEncodingForType(Ivars[0]->getType(), StrEncoding);
+ Result += StrEncoding;
+ Result += "\", ";
SynthesizeIvarOffsetComputation(IDecl, Ivars[0], Result);
Result += "}\n";
for (int i = 1; i < NumIvars; i++) {
- // TODO: 1) ivar names may have to go to another section. 2) encode
- // ivar_type type of each ivar .
Result += "\t ,{\"";
Result += Ivars[i]->getName();
- Result += "\", \"\", ";
+ Result += "\", \"";
+ std::string StrEncoding;
+ Context->getObjcEncodingForType(Ivars[i]->getType(), StrEncoding);
+ Result += StrEncoding;
+ Result += "\", ";
SynthesizeIvarOffsetComputation(IDecl, Ivars[i], Result);
Result += "}\n";
}
More information about the cfe-commits
mailing list