[cfe-commits] r159454 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jun 29 12:33:06 PDT 2012
Author: fjahanian
Date: Fri Jun 29 14:33:05 2012
New Revision: 159454
URL: http://llvm.org/viewvc/llvm-project?rev=159454&view=rev
Log:
modern objc translator: string.h is unavailable on some non-OSX
platforms declare memset in rewritten code instead.
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=159454&r1=159453&r2=159454&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Fri Jun 29 14:33:05 2012
@@ -5958,7 +5958,7 @@
}
// needed for use of memset.
- Preamble += "\n#include <string.h>\n";
+ Preamble += "\nextern \"C\" void * memset(void *b, int c, unsigned long len);\n";
// Declarations required for modern objective-c array and dictionary literals.
Preamble += "\n#include <stdarg.h>\n";
More information about the cfe-commits
mailing list