forward declare GraphTraits in Type.h instead of #includ'ing it.
authorChris Lattner <sabre@nondot.org>
Thu, 16 Jun 2011 21:49:23 +0000 (21:49 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 16 Jun 2011 21:49:23 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133201 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h

index 5a3413ac3d7def04132b97fc08e00f4e9ca9a48b..0bd4350132c1fcc242ce2eb32b336a6da76c47f1 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "llvm/AbstractTypeUser.h"
 #include "llvm/Support/Casting.h"
-#include "llvm/ADT/GraphTraits.h"
 #include <string>
 #include <vector>
 
@@ -30,6 +29,7 @@ class TypeMapBase;
 class raw_ostream;
 class Module;
 class LLVMContext;
+template<class GraphType> struct GraphTraits;
 
 /// The instances of the Type class are immutable: once they are created,
 /// they are never changed.  Also note that only one instance of a particular