Skip to content

Commit b77e36d

Browse files
[RISCV] Remove unused includes (NFC) (llvm#141378)
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 d4d8a0f commit b77e36d

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "llvm/MC/MCAssembler.h"
1919
#include "llvm/MC/MCContext.h"
2020
#include "llvm/MC/MCStreamer.h"
21-
#include "llvm/MC/MCSymbolELF.h"
2221
#include "llvm/MC/MCValue.h"
2322
#include "llvm/Support/Casting.h"
2423
#include "llvm/Support/ErrorHandling.h"

llvm/lib/Target/RISCV/RISCVSubtarget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#include "RISCVFrameLowering.h"
1818
#include "RISCVSelectionDAGInfo.h"
1919
#include "RISCVTargetMachine.h"
20-
#include "llvm/CodeGen/MacroFusion.h"
21-
#include "llvm/CodeGen/ScheduleDAGMutation.h"
2220
#include "llvm/MC/TargetRegistry.h"
2321
#include "llvm/Support/ErrorHandling.h"
2422

llvm/lib/Target/RISCV/RISCVVectorMaskDAGMutation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
#include "MCTargetDesc/RISCVBaseInfo.h"
3030
#include "MCTargetDesc/RISCVMCTargetDesc.h"
31-
#include "RISCVRegisterInfo.h"
3231
#include "RISCVTargetMachine.h"
3332
#include "llvm/CodeGen/LiveIntervals.h"
3433
#include "llvm/CodeGen/MachineInstr.h"

0 commit comments

Comments
 (0)