Path: blob/main/contrib/llvm-project/llvm/lib/MC/MCELFObjectTargetWriter.cpp
35234 views
//===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/MC/MCELFObjectWriter.h"910using namespace llvm;1112MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_, uint8_t OSABI_,13uint16_t EMachine_,14bool HasRelocationAddend_,15uint8_t ABIVersion_)16: OSABI(OSABI_), ABIVersion(ABIVersion_), EMachine(EMachine_),17HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_) {}1819bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCValue &,20const MCSymbol &,21unsigned Type) const {22return false;23}2425void26MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,27std::vector<ELFRelocationEntry> &Relocs) {28}2930void MCELFObjectTargetWriter::addTargetSectionFlags(MCContext &Ctx,31MCSectionELF &Sec) {}323334