Changes in directory llvm/include/llvm:
AbstractTypeUser.h updated: 1.28 -> 1.29 --- Log message: Have compiler enforce this. --- Diffs of the changes: (+5 -3) AbstractTypeUser.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) Index: llvm/include/llvm/AbstractTypeUser.h diff -u llvm/include/llvm/AbstractTypeUser.h:1.28 llvm/include/llvm/AbstractTypeUser.h:1.29 --- llvm/include/llvm/AbstractTypeUser.h:1.28 Sun Apr 22 13:49:32 2007 +++ llvm/include/llvm/AbstractTypeUser.h Sun Apr 22 17:16:55 2007 @@ -14,9 +14,11 @@ #ifndef LLVM_ABSTRACT_TYPE_USER_H #define LLVM_ABSTRACT_TYPE_USER_H -// IMPORTANT: Do not include this file directly. Include Type.h instead. -// Some versions of GCC can't handle the inlined method PATypeHolder::dropRef() -// correctly otherwise. +#if !defined(LLVM_TYPE_H) && !defined(LLVM_VALUE_H) +#error Do not include this file directly. Include Type.h instead. +#error Some versions of GCC (e.g. 3.4 and 4.1) can't handle the inlined method +#error PATypeHolder::dropRef() correctly otherwise. +#endif // This is the "master" include for <cassert> Whether this file needs it or not, // it must always include <cassert> for the files which include _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits