LLVM 22.0.0git
RISCVMachObjectWriter.cpp
Go to the documentation of this file.
1//===-- RISCVMachObjectWriter.cpp - RISC-V Mach Object Writer -------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
12#include "llvm/ADT/Twine.h"
14#include "llvm/MC/MCAsmInfo.h"
15#include "llvm/MC/MCAssembler.h"
16#include "llvm/MC/MCContext.h"
17#include "llvm/MC/MCExpr.h"
18#include "llvm/MC/MCFixup.h"
20#include "llvm/MC/MCSection.h"
22#include "llvm/MC/MCSymbol.h"
23#include "llvm/MC/MCValue.h"
26#include <cassert>
27#include <cstdint>
28
29using namespace llvm;
30
31namespace {
32
33class RISCVMachObjectWriter : public MCMachObjectTargetWriter {
34public:
35 RISCVMachObjectWriter(uint32_t CPUType, uint32_t CPUSubtype)
36 : MCMachObjectTargetWriter(false, CPUType, CPUSubtype) {}
37
38 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
39 const MCFragment *Fragment, const MCFixup &Fixup,
40 MCValue Target, uint64_t &FixedValue) override;
41};
42
43} // end anonymous namespace
44
45void RISCVMachObjectWriter::recordRelocation(
46 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment,
47 const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) {
48 llvm_unreachable("unimplemented");
49}
50
51std::unique_ptr<MCObjectTargetWriter>
53 return std::make_unique<RISCVMachObjectWriter>(CPUType, CPUSubtype);
54}
Function Alias Analysis false
PowerPC TLS Dynamic Call Fixup
This file contains some functions that are useful when dealing with strings.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Definition MCFixup.h:61
Target - Wrapper for Target specific information.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
Definition Types.h:26
std::unique_ptr< MCObjectTargetWriter > createRISCVMachObjectWriter(uint32_t CPUType, uint32_t CPUSubtype)