[llvm] f6909cf - Adjust includes in MCTargetDesc to avoid unnecessary CodeGen deps, NFC
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 13:47:39 PDT 2023
Author: Reid Kleckner
Date: 2023-07-27T13:41:28-07:00
New Revision: f6909cff4256d03ffbb925027d9f7c68b8f9f657
URL: https://github.com/llvm/llvm-project/commit/f6909cff4256d03ffbb925027d9f7c68b8f9f657
DIFF: https://github.com/llvm/llvm-project/commit/f6909cff4256d03ffbb925027d9f7c68b8f9f657.diff
LOG: Adjust includes in MCTargetDesc to avoid unnecessary CodeGen deps, NFC
These are small include-only changes in the AArch64 and ARM backends
that seem sufficiently small to commit separately without review.
See issue #64166 for more information about layering.
Added:
Modified:
llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
index 11eb4bf0c4028e..e1d6dd7a056bce 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
@@ -12,7 +12,6 @@
#include "AArch64TargetStreamer.h"
#include "AArch64MCAsmInfo.h"
-#include "AArch64Subtarget.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/ConstantPools.h"
#include "llvm/MC/MCContext.h"
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
index 25bbc4ee7eb59b..9c9af6068079d3 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
@@ -12,8 +12,9 @@
//
//===----------------------------------------------------------------------===//
-#include "ARMRegisterInfo.h"
+#include "ARMMCTargetDesc.h"
#include "ARMUnwindOpAsm.h"
+#include "Utils/ARMBaseInfo.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
More information about the llvm-commits
mailing list