From: Jay Foad Date: Fri, 11 Jun 2021 14:22:14 +0000 (+0100) Subject: [IR] Remove forward declaration of GraphTraits from Type.h X-Git-Tag: llvmorg-14-init~3956 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5dc511c538745df1ef4c5a22b99b56747f32edc;p=platform%2Fupstream%2Fllvm.git [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 --- 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;