[cfe-commits] r57334 - /cfe/trunk/Driver/clang.cpp

Daniel Dunbar daniel at zuster.org
Thu Oct 9 17:20:56 PDT 2008


Author: ddunbar
Date: Thu Oct  9 19:20:52 2008
New Revision: 57334

URL: http://llvm.org/viewvc/llvm-project?rev=57334&view=rev
Log:
Disable blocks support in C++ mode.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=57334&r1=57333&r2=57334&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Thu Oct  9 19:20:52 2008
@@ -487,6 +487,9 @@
   } else {
     Options.NeXTRuntime = Target->useNeXTRuntimeAsDefault();
   }
+
+  if (Options.CPlusPlus)
+    Options.Blocks = 0;   
 }
 
 static llvm::cl::opt<bool>





More information about the cfe-commits mailing list