Have compiler enforce this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2007-04-22 22:16:55 +00:00
parent a7f0d3ce22
commit dc4cb35105
2 changed files with 5 additions and 4 deletions

View File

@ -14,9 +14,11 @@
#ifndef LLVM_ABSTRACT_TYPE_USER_H #ifndef LLVM_ABSTRACT_TYPE_USER_H
#define LLVM_ABSTRACT_TYPE_USER_H #define LLVM_ABSTRACT_TYPE_USER_H
// IMPORTANT: Do not include this file directly. Include Type.h instead. #if !defined(LLVM_TYPE_H) && !defined(LLVM_VALUE_H)
// Some versions of GCC can't handle the inlined method PATypeHolder::dropRef() #error Do not include this file directly. Include Type.h instead.
// correctly otherwise. #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, // This is the "master" include for <cassert> Whether this file needs it or not,
// it must always include <cassert> for the files which include // it must always include <cassert> for the files which include

View File

@ -11,7 +11,6 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/AbstractTypeUser.h"
#include "llvm/DerivedTypes.h" #include "llvm/DerivedTypes.h"
#include "llvm/ParameterAttributes.h" #include "llvm/ParameterAttributes.h"
#include "llvm/Constants.h" #include "llvm/Constants.h"