From 33be4c78ef52f2ec369914b57555ea0dcf75d75e Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sun, 22 Apr 2007 18:49:32 +0000 Subject: [PATCH] Fix build problem with Gentoo 4.1.1-r3. llvm-svn: 36348 --- llvm/include/llvm/AbstractTypeUser.h | 4 ++++ llvm/lib/Bitcode/Reader/BitcodeReader.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/AbstractTypeUser.h b/llvm/include/llvm/AbstractTypeUser.h index c083366d3f2c..ee3fde033eb0 100644 --- a/llvm/include/llvm/AbstractTypeUser.h +++ b/llvm/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 Whether this file needs it or not, // it must always include for the files which include // llvm/AbstractTypeUser.h diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.h b/llvm/lib/Bitcode/Reader/BitcodeReader.h index a92f0ac4c7dc..7a69333e1000 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.h +++ b/llvm/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