[llvm] 656b8f5 - [PassManager] Drop Function.h and Module.h includes (NFC) (#96892)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 05:36:48 PDT 2024
Author: Nikita Popov
Date: 2024-06-27T14:36:45+02:00
New Revision: 656b8f5ec4ba3fe8ec7bdef125ccd42ed43b0b16
URL: https://github.com/llvm/llvm-project/commit/656b8f5ec4ba3fe8ec7bdef125ccd42ed43b0b16
DIFF: https://github.com/llvm/llvm-project/commit/656b8f5ec4ba3fe8ec7bdef125ccd42ed43b0b16.diff
LOG: [PassManager] Drop Function.h and Module.h includes (NFC) (#96892)
Replace them with forward declarations.
Added:
Modified:
llvm/include/llvm/IR/PassManager.h
Removed:
################################################################################
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