aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-08-11 00:59:39 +0000
committerGabor Greif <ggreif@gmail.com>2009-08-11 00:59:39 +0000
commitfd3acb7c12acf218ccc0824885e53ee659f2909f (patch)
tree3962e7ffa9d722c6775db5e60a15af50a8101213 /autoconf
parent0325b5c4797722ce65d145a4e80c7ed4c36baa66 (diff)
downloadexternal_llvm-fd3acb7c12acf218ccc0824885e53ee659f2909f.zip
external_llvm-fd3acb7c12acf218ccc0824885e53ee659f2909f.tar.gz
external_llvm-fd3acb7c12acf218ccc0824885e53ee659f2909f.tar.bz2
Lay the groundwork for my upcoming ilist sentinel shrinking patch
by defining a LLVM_COMPACT_SENTINELS symbol to 0 or 1 in config.h. I'm asking for 3 favors: - may an autofoo expert look at this and suggest improvements? - may a cmake expert suggest analogous functionality for config.h? - may somebody with the right autofoo mix regenerate configure? (mine is too new) Thanks! --This line, and those below, will be ignored-- M configure.ac git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 063faa6..149ddd1 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -312,6 +312,17 @@ else
AC_SUBST(DISABLE_ASSERTIONS,[[DISABLE_ASSERTIONS=1]])
fi
+dnl LLVM_COMPACT_SENTINELS : can be used to shrink ilist's end iterators and disable certain checks on them:
+if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
+ AC_SUBST(LLVM_COMPACT_SENTINELS,[1])
+else
+ AC_SUBST(LLVM_COMPACT_SENTINELS,[0])
+fi
+
+AC_DEFINE_UNQUOTED([LLVM_COMPACT_SENTINELS],$LLVM_COMPACT_SENTINELS,
+ [Define to 1 for ilist sentinel compaction])
+
+
dnl --enable-expensive-checks : check whether they want to turn on expensive debug checks:
AC_ARG_ENABLE(expensive-checks,AS_HELP_STRING(
--enable-expensive-checks,[Compile with expensive debug checks enabled (default is NO)]),, enableval="no")