[cfe-commits] r43616 - /cfe/trunk/Driver/RewriteTest.cpp
Steve Naroff
snaroff at apple.com
Thu Nov 1 10:12:31 PDT 2007
Author: snaroff
Date: Thu Nov 1 12:12:31 2007
New Revision: 43616
URL: http://llvm.org/viewvc/llvm-project?rev=43616&view=rev
Log:
- Remove _interface_ prefix for the synthesized tag names.
- Also removed a tab from the generated struct (minor).
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=43616&r1=43615&r2=43616&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Thu Nov 1 12:12:31 2007
@@ -614,15 +614,14 @@
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 += " {";
More information about the cfe-commits
mailing list