diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-22 18:49:32 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-22 18:49:32 +0000 |
commit | cb403d69fb620d4df66233d27a6f8c545ce0d0e4 (patch) | |
tree | 5d4b1bb2fc9a9dc6fb4fcdda4896726c8691d003 | |
parent | b5594e3066328bb512fe84ebe579d23bcbf039b6 (diff) |
Fix build problem with Gentoo 4.1.1-r3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36348 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/AbstractTypeUser.h | 4 | ||||
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index c083366d3f..ee3fde033e 100644 --- a/include/llvm/AbstractTypeUser.h +++ b/include/llvm/AbstractTypeUser.h @@ -14,6 +14,10 @@ #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. + // 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/AbstractTypeUser.h diff --git a/lib/Bitcode/Reader/BitcodeReader.h b/lib/Bitcode/Reader/BitcodeReader.h index a92f0ac4c7..7a69333e10 100644 --- a/lib/Bitcode/Reader/BitcodeReader.h +++ b/lib/Bitcode/Reader/BitcodeReader.h @@ -14,7 +14,7 @@ #ifndef BITCODE_READER_H #define BITCODE_READER_H -#include "llvm/AbstractTypeUser.h" +#include "llvm/Type.h" #include "llvm/ModuleProvider.h" #include "../LLVMBitCodes.h" #include <vector> |