[llvm] f5dc511 - [IR] Remove forward declaration of GraphTraits from Type.h
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 01:23:54 PDT 2021
Author: Jay Foad
Date: 2021-06-15T09:23:45+01:00
New Revision: f5dc511c538745df1ef4c5a22b99b56747f32edc
URL: https://github.com/llvm/llvm-project/commit/f5dc511c538745df1ef4c5a22b99b56747f32edc
DIFF: https://github.com/llvm/llvm-project/commit/f5dc511c538745df1ef4c5a22b99b56747f32edc.diff
LOG: [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
Added:
Modified:
llvm/include/llvm/Analysis/LazyCallGraph.h
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/include/llvm/IR/Type.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LazyCallGraph.h b/llvm/include/llvm/Analysis/LazyCallGraph.h
index 7b3627867cb9a..b97bf7c489edc 100644
--- a/llvm/include/llvm/Analysis/LazyCallGraph.h
+++ b/llvm/include/llvm/Analysis/LazyCallGraph.h
@@ -60,6 +60,7 @@
namespace llvm {
+template <class GraphType> struct GraphTraits;
class Module;
class Value;
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h
index b588c0a5a7789..4b84f6b0408de 100644
--- a/llvm/include/llvm/IR/ModuleSummaryIndex.h
+++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h
@@ -45,6 +45,8 @@
namespace llvm {
+template <class GraphType> struct GraphTraits;
+
namespace yaml {
template <typename T> struct MappingTraits;
diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h
index e30d4ad226139..8f16306ab8174 100644
--- a/llvm/include/llvm/IR/Type.h
+++ b/llvm/include/llvm/IR/Type.h
@@ -28,7 +28,6 @@
namespace llvm {
-template<class GraphType> struct GraphTraits;
class IntegerType;
class LLVMContext;
class PointerType;
More information about the llvm-commits
mailing list