Skip to content

Commit 656b8f5

Browse files
authored
[PassManager] Drop Function.h and Module.h includes (NFC) (#96892)
Replace them with forward declarations.
1 parent 34fe6da commit 656b8f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/IR/PassManager.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include "llvm/ADT/StringRef.h"
4343
#include "llvm/ADT/TinyPtrVector.h"
4444
#include "llvm/IR/Analysis.h"
45-
#include "llvm/IR/Function.h"
46-
#include "llvm/IR/Module.h"
4745
#include "llvm/IR/PassManagerInternal.h"
4846
#include "llvm/Support/TypeName.h"
4947
#include <cassert>
@@ -58,6 +56,9 @@
5856

5957
namespace llvm {
6058

59+
class Function;
60+
class Module;
61+
6162
// Forward declare the analysis manager template.
6263
template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager;
6364

0 commit comments

Comments
 (0)