[cfe-commits] r134414 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Jul 5 09:00:59 PDT 2011
Author: fjahanian
Date: Tue Jul 5 11:00:59 2011
New Revision: 134414
URL: http://llvm.org/viewvc/llvm-project?rev=134414&view=rev
Log:
Don't define __CONSTANT_CFSTRINGS__ with -fno-constant-cfstrings issue.
Patch by Jean-Daniel Dupas.
Modified:
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=134414&r1=134413&r2=134414&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Tue Jul 5 11:00:59 2011
@@ -438,7 +438,8 @@
// darwin_constant_cfstrings controls this. This is also dependent
// on other things like the runtime I believe. This is set even for C code.
- Builder.defineMacro("__CONSTANT_CFSTRINGS__");
+ if (!LangOpts.NoConstantCFStrings)
+ Builder.defineMacro("__CONSTANT_CFSTRINGS__");
if (LangOpts.ObjC2)
Builder.defineMacro("OBJC_NEW_PROPERTIES");
More information about the cfe-commits
mailing list