aboutsummaryrefslogtreecommitdiff
path: root/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-10-29 17:16:25 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-10-29 17:16:25 +0000
commit160eb6538eee38b6827a6173c4f7cc0630b29ed5 (patch)
tree659ff87f72fd5404c4576c0cbeed3e56e0539676 /Driver/RewriteTest.cpp
parent72cb1aedb503db4157de20c97ca993aade36657f (diff)
Do the encoding of ivar types in the ivar metadata.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r--Driver/RewriteTest.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp
index 0c303daddf..45dde83375 100644
--- a/Driver/RewriteTest.cpp
+++ b/Driver/RewriteTest.cpp
@@ -836,15 +836,21 @@ void RewriteTest::RewriteObjcClassMetaData(ObjcImplementationDecl *IDecl,
: 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";
}