aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-06-28 14:30:47 +0200
committerGitHub <noreply@github.com>2024-06-28 14:30:47 +0200
commit4169338e75cdce73d34063532db598c95ee82ae4 (patch)
tree88a4fc003e74bec92463bce4049167aa5ae0e425 /llvm/lib/Target/TargetMachine.cpp
parent17c567b095ab749b59d311ec9d8cd2bae584ac0b (diff)
downloadllvm-4169338e75cdce73d34063532db598c95ee82ae4.zip
llvm-4169338e75cdce73d34063532db598c95ee82ae4.tar.gz
llvm-4169338e75cdce73d34063532db598c95ee82ae4.tar.bz2
[IR] Don't include Module.h in Analysis.h (NFC) (#97023)
Replace it with a forward declaration instead. Analysis.h is pulled in by all passes, but not all passes need to access the module.
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/TargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index eab9bc95..f5065bf 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -16,6 +16,7 @@
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Mangler.h"
+#include "llvm/IR/Module.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCInstrInfo.h"