Skip to content

Commit e01adb4

Browse files
[PowerPC] Remove unused includes (NFC) (llvm#141449)
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
1 parent 6c37341 commit e01adb4

8 files changed

+0
-12
lines changed

llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "PPCMCExpr.h"
10-
#include "PPCFixupKinds.h"
11-
#include "llvm/BinaryFormat/ELF.h"
1210
#include "llvm/MC/MCAsmInfo.h"
1311
#include "llvm/MC/MCAssembler.h"
1412
#include "llvm/MC/MCContext.h"
1513
#include "llvm/MC/MCObjectStreamer.h"
16-
#include "llvm/MC/MCSymbolELF.h"
17-
#include "llvm/Support/Casting.h"
1814

1915
using namespace llvm;
2016

llvm/lib/Target/PowerPC/PPCCTRLoops.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
#include "llvm/CodeGen/MachineOperand.h"
4040
#include "llvm/CodeGen/MachineRegisterInfo.h"
4141
#include "llvm/CodeGen/Register.h"
42-
#include "llvm/InitializePasses.h"
4342
#include "llvm/Pass.h"
44-
#include "llvm/PassRegistry.h"
4543
#include "llvm/Support/ErrorHandling.h"
4644
#include <cassert>
4745

llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
#include "llvm/IR/IntrinsicsPowerPC.h"
9696
#include "llvm/IR/Type.h"
9797
#include "llvm/IR/Value.h"
98-
#include "llvm/InitializePasses.h"
9998
#include "llvm/Pass.h"
10099
#include "llvm/Support/Casting.h"
101100
#include "llvm/Support/CommandLine.h"

llvm/lib/Target/PowerPC/PPCMIPeephole.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include "llvm/CodeGen/MachineInstrBuilder.h"
4343
#include "llvm/CodeGen/MachinePostDominators.h"
4444
#include "llvm/CodeGen/MachineRegisterInfo.h"
45-
#include "llvm/InitializePasses.h"
4645
#include "llvm/Support/Debug.h"
4746
#include "llvm/Support/DebugCounter.h"
4847

llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "llvm/CodeGen/MachineInstrBuilder.h"
2525
#include "llvm/CodeGen/MachineRegisterInfo.h"
2626
#include "llvm/Config/llvm-config.h"
27-
#include "llvm/InitializePasses.h"
2827
#include "llvm/Support/Debug.h"
2928

3029
using namespace llvm;

llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "llvm/CodeGen/MachineFrameInfo.h"
2828
#include "llvm/CodeGen/MachineFunctionPass.h"
2929
#include "llvm/CodeGen/MachineInstrBuilder.h"
30-
#include "llvm/InitializePasses.h"
3130
#include "llvm/Support/Debug.h"
3231
#include "llvm/Support/raw_ostream.h"
3332

llvm/lib/Target/PowerPC/PPCTargetMachine.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "llvm/Analysis/TargetTransformInfo.h"
2525
#include "llvm/CodeGen/GlobalISel/IRTranslator.h"
2626
#include "llvm/CodeGen/GlobalISel/InstructionSelect.h"
27-
#include "llvm/CodeGen/GlobalISel/InstructionSelector.h"
2827
#include "llvm/CodeGen/GlobalISel/Legalizer.h"
2928
#include "llvm/CodeGen/GlobalISel/Localizer.h"
3029
#include "llvm/CodeGen/GlobalISel/RegBankSelect.h"

llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "llvm/CodeGen/PseudoSourceValue.h"
2626
#include "llvm/CodeGen/ScheduleDAG.h"
2727
#include "llvm/CodeGen/SlotIndexes.h"
28-
#include "llvm/InitializePasses.h"
2928
#include "llvm/MC/TargetRegistry.h"
3029
#include "llvm/Support/CommandLine.h"
3130
#include "llvm/Support/Debug.h"

0 commit comments

Comments
 (0)