diff options
author | Nikita Popov <npopov@redhat.com> | 2024-06-28 14:30:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 14:30:47 +0200 |
commit | 4169338e75cdce73d34063532db598c95ee82ae4 (patch) | |
tree | 88a4fc003e74bec92463bce4049167aa5ae0e425 /llvm/lib/Target/PowerPC | |
parent | 17c567b095ab749b59d311ec9d8cd2bae584ac0b (diff) | |
download | llvm-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/PowerPC')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCMCInstLower.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp index 31a2614..d8f3c29 100644 --- a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp +++ b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp @@ -24,6 +24,7 @@ #include "llvm/IR/DataLayout.h" #include "llvm/IR/GlobalValue.h" #include "llvm/IR/Mangler.h" +#include "llvm/IR/Module.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCInst.h" diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index bd9af12..aaee08d 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp @@ -23,7 +23,9 @@ #include "llvm/CodeGen/MachineScheduler.h" #include "llvm/IR/Attributes.h" #include "llvm/IR/Function.h" +#include "llvm/IR/GlobalAlias.h" #include "llvm/IR/GlobalValue.h" +#include "llvm/IR/GlobalVariable.h" #include "llvm/MC/TargetRegistry.h" #include "llvm/Support/CommandLine.h" #include "llvm/Target/TargetMachine.h" |