From f5dc511c538745df1ef4c5a22b99b56747f32edc Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Fri, 11 Jun 2021 15:22:14 +0100 Subject: [PATCH] [IR] Remove forward declaration of GraphTraits from Type.h 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 | 1 + llvm/include/llvm/IR/ModuleSummaryIndex.h | 2 ++ llvm/include/llvm/IR/Type.h | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/LazyCallGraph.h b/llvm/include/llvm/Analysis/LazyCallGraph.h index 7b36278..b97bf7c 100644 --- a/llvm/include/llvm/Analysis/LazyCallGraph.h +++ b/llvm/include/llvm/Analysis/LazyCallGraph.h @@ -60,6 +60,7 @@ namespace llvm { +template struct GraphTraits; class Module; class Value; diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h index b588c0a..4b84f6b 100644 --- a/llvm/include/llvm/IR/ModuleSummaryIndex.h +++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h @@ -45,6 +45,8 @@ namespace llvm { +template struct GraphTraits; + namespace yaml { template struct MappingTraits; diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h index e30d4ad..8f16306 100644 --- a/llvm/include/llvm/IR/Type.h +++ b/llvm/include/llvm/IR/Type.h @@ -28,7 +28,6 @@ namespace llvm { -template struct GraphTraits; class IntegerType; class LLVMContext; class PointerType; -- 2.7.4