- Remove _interface_ prefix for the synthesized tag names.

- Also removed a tab from the generated struct (minor).

llvm-svn: 43616
This commit is contained in:
Steve Naroff 2007-11-01 17:12:31 +00:00
parent 53155f379e
commit 63006473d5
1 changed files with 8 additions and 9 deletions

View File

@ -614,15 +614,14 @@ void RewriteTest::SynthesizeObjcInternalStruct(ObjcInterfaceDecl *CDecl,
if (NumIvars <= 0 && (!RCDecl || !ObjcSynthesizedStructs.count(RCDecl)))
return;
Result += "\nstruct _interface_";
Result += CDecl->getName();
if (RCDecl && ObjcSynthesizedStructs.count(RCDecl)) {
Result += " {\n";
Result += "\tstruct _interface_";
Result += RCDecl->getName();
Result += " _";
Result += RCDecl->getName();
Result += ";\n";
Result += "\nstruct ";
Result += CDecl->getName();
if (RCDecl && ObjcSynthesizedStructs.count(RCDecl)) {
Result += " {\n struct ";
Result += RCDecl->getName();
Result += " _";
Result += RCDecl->getName();
Result += ";\n";
}
else
Result += " {";