[IR] Remove forward declaration of GraphTraits from Type.h
authorJay Foad <jay.foad@amd.com>
Fri, 11 Jun 2021 14:22:14 +0000 (15:22 +0100)
committerJay Foad <jay.foad@amd.com>
Tue, 15 Jun 2021 08:23:45 +0000 (09:23 +0100)
This has been unnecessary since r352353 removed GraphTraits
specializations for Type, except that a couple of other headers were
accidentally relying on this declaration.

Differential Revision: https://reviews.llvm.org/D104119

llvm/include/llvm/Analysis/LazyCallGraph.h
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/include/llvm/IR/Type.h

index 7b36278..b97bf7c 100644 (file)
@@ -60,6 +60,7 @@
 
 namespace llvm {
 
+template <class GraphType> struct GraphTraits;
 class Module;
 class Value;
 
index b588c0a..4b84f6b 100644 (file)
@@ -45,6 +45,8 @@
 
 namespace llvm {
 
+template <class GraphType> struct GraphTraits;
+
 namespace yaml {
 
 template <typename T> struct MappingTraits;
index e30d4ad..8f16306 100644 (file)
@@ -28,7 +28,6 @@
 
 namespace llvm {
 
-template<class GraphType> struct GraphTraits;
 class IntegerType;
 class LLVMContext;
 class PointerType;