[llvm] [PassManager] Drop Function.h and Module.h includes (NFC) (PR #96892)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 03:37:28 PDT 2024
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/96892
Replace them with forward declarations.
>From 9d49f6d886d2d2933fc986a845187a0b97f6e41b Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Thu, 27 Jun 2024 12:19:18 +0200
Subject: [PATCH] [PassManager] Drop Function.h and Module.h includes (NFC)
Replace them with forward declarations.
---
llvm/include/llvm/IR/PassManager.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h
index 226eba7d8027a..d269221fac070 100644
--- a/llvm/include/llvm/IR/PassManager.h
+++ b/llvm/include/llvm/IR/PassManager.h
@@ -42,8 +42,6 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/IR/Analysis.h"
-#include "llvm/IR/Function.h"
-#include "llvm/IR/Module.h"
#include "llvm/IR/PassManagerInternal.h"
#include "llvm/Support/TypeName.h"
#include <cassert>
@@ -58,6 +56,9 @@
namespace llvm {
+class Function;
+class Module;
+
// Forward declare the analysis manager template.
template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager;
More information about the llvm-commits
mailing list