llvm-gcc/clang don't (won't?) need this hack.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 11 Nov 2009 00:28:38 +0000 (00:28 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 11 Nov 2009 00:28:38 +0000 (00:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86769 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index 2608365e58ba8fea65856b8bf35cb6d30302a44c..6a3577aaaf18dc0a7c49307a58b7c8289f9877c7 100644 (file)
@@ -16,7 +16,8 @@
 //
 // FIXME: This is a huge hack, to work around ridiculously awful compile times
 // on this file with gcc-4.2 on Darwin, in Release mode.
-#if defined(__APPLE__) && defined(__OPTIMIZE__) && !defined(NDEBUG)
+#if (!defined(__llvm__) && defined(__APPLE__) && \
+     defined(__OPTIMIZE__) && !defined(NDEBUG))
 #define NDEBUG
 #endif