[cfe-commits] r153145 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Mar 20 15:24:05 PDT 2012
Author: fjahanian
Date: Tue Mar 20 17:24:05 2012
New Revision: 153145
URL: http://llvm.org/viewvc/llvm-project?rev=153145&view=rev
Log:
modern objective-c translator: insert couple of pragmas for optimization.
// rdar://11079898
Modified:
cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=153145&r1=153144&r2=153145&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Tue Mar 20 17:24:05 2012
@@ -6337,6 +6337,8 @@
void RewriteModernObjC::RewriteMetaDataIntoBuffer(std::string &Result) {
int ClsDefCount = ClassImplementation.size();
int CatDefCount = CategoryImplementation.size();
+ if (LangOpts.MicrosoftExt)
+ Result += "#pragma optimize(\"g\", on)";
// For each implemented class, write out all its meta data.
for (int i = 0; i < ClsDefCount; i++)
@@ -6406,6 +6408,8 @@
}
Result += "};\n";
}
+ if (LangOpts.MicrosoftExt)
+ Result += "#pragma optimize(\"\", on)\n";
}
void RewriteModernObjC::WriteImageInfo(std::string &Result) {
More information about the cfe-commits
mailing list