[llvm] d000431 - [X86] Remove X86ELFObjectWriter in X86AsmBackend.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 1 08:32:10 PDT 2021
Author: Kazu Hirata
Date: 2021-11-01T08:31:54-07:00
New Revision: d000431fb23482125d43dc923a5b17b684f31083
URL: https://github.com/llvm/llvm-project/commit/d000431fb23482125d43dc923a5b17b684f31083
DIFF: https://github.com/llvm/llvm-project/commit/d000431fb23482125d43dc923a5b17b684f31083.diff
LOG: [X86] Remove X86ELFObjectWriter in X86AsmBackend.cpp (NFC)
Note that the identically named class is defined in an anonymous
namespace in X86ELFObjectWriter.cpp.
Added:
Modified:
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
index c358776a08105..d4f39b5713941 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
@@ -116,13 +116,6 @@ cl::opt<bool> X86PadForBranchAlign(
"x86-pad-for-branch-align", cl::init(true), cl::Hidden,
cl::desc("Pad previous instructions to implement branch alignment"));
-class X86ELFObjectWriter : public MCELFObjectTargetWriter {
-public:
- X86ELFObjectWriter(bool is64Bit, uint8_t OSABI, uint16_t EMachine,
- bool HasRelocationAddend, bool foobar)
- : MCELFObjectTargetWriter(is64Bit, OSABI, EMachine, HasRelocationAddend) {}
-};
-
class X86AsmBackend : public MCAsmBackend {
const MCSubtargetInfo &STI;
std::unique_ptr<const MCInstrInfo> MCII;
More information about the llvm-commits
mailing list