summaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp b/contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp
new file mode 100644
index 000000000000..a81eab9ca296
--- /dev/null
+++ b/contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp
@@ -0,0 +1,31 @@
+//===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/MC/MCELFObjectWriter.h"
+
+using namespace llvm;
+
+MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_, uint8_t OSABI_,
+ uint16_t EMachine_,
+ bool HasRelocationAddend_,
+ uint8_t ABIVersion_)
+ : OSABI(OSABI_), ABIVersion(ABIVersion_), EMachine(EMachine_),
+ HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_) {}
+
+bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
+ unsigned Type) const {
+ return false;
+}
+
+void
+MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
+ std::vector<ELFRelocationEntry> &Relocs) {
+}
+
+void MCELFObjectTargetWriter::addTargetSectionFlags(MCContext &Ctx,
+ MCSectionELF &Sec) {}