Fix build problem with Gentoo 4.1.1-r3.
authorJeff Cohen <jeffc@jolt-lang.org>
Sun, 22 Apr 2007 18:49:32 +0000 (18:49 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sun, 22 Apr 2007 18:49:32 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36348 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/AbstractTypeUser.h
lib/Bitcode/Reader/BitcodeReader.h

index c083366d3f2c0959be2c9a9ea428ca44a53acbb9..ee3fde033eb0345ec261eea48f380b3db8156529 100644 (file)
 #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
index a92f0ac4c7dc9c28e992bae26eabafcad581b4e0..7a69333e100008d000e307bd4878ae63cad74859 100644 (file)
@@ -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>