[llvm-commits] [llvm] r133201 - /llvm/trunk/include/llvm/Type.h

Chris Lattner sabre at nondot.org
Thu Jun 16 14:49:23 PDT 2011


Author: lattner
Date: Thu Jun 16 16:49:23 2011
New Revision: 133201

URL: http://llvm.org/viewvc/llvm-project?rev=133201&view=rev
Log:
forward declare GraphTraits in Type.h instead of #includ'ing it.

Modified:
    llvm/trunk/include/llvm/Type.h

Modified: llvm/trunk/include/llvm/Type.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Type.h?rev=133201&r1=133200&r2=133201&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Type.h (original)
+++ llvm/trunk/include/llvm/Type.h Thu Jun 16 16:49:23 2011
@@ -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 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





More information about the llvm-commits mailing list