LLVM  7.0.0
Nios2ELFObjectWriter.cpp
Go to the documentation of this file.
1 //===-- Nios2ELFObjectWriter.cpp - Nios2 ELF Writer -----------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
14 #include "llvm/MC/MCObjectWriter.h"
15 
16 using namespace llvm;
17 
18 namespace {
19 class Nios2ELFObjectWriter : public MCELFObjectTargetWriter {
20 public:
21  Nios2ELFObjectWriter(uint8_t OSABI)
23 
24  ~Nios2ELFObjectWriter() override;
25 
26  unsigned getRelocType(MCContext &Ctx, const MCValue &Target,
27  const MCFixup &Fixup, bool IsPCRel) const override;
28 };
29 } // namespace
30 
31 Nios2ELFObjectWriter::~Nios2ELFObjectWriter() {}
32 
34  const MCValue &Target,
35  const MCFixup &Fixup,
36  bool IsPCRel) const {
37  return 0;
38 }
39 
40 std::unique_ptr<MCObjectTargetWriter>
42  return llvm::make_unique<Nios2ELFObjectWriter>(OSABI);
43 }
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
This represents an "assembler immediate".
Definition: MCValue.h:40
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Definition: MCFixup.h:74
static unsigned getRelocType(const MCValue &Target, const MCFixupKind FixupKind, const bool IsPCRel)
Translates generic PPC fixup kind to Mach-O/PPC relocation type enum.
Context object for machine code objects.
Definition: MCContext.h:63
Target - Wrapper for Target specific information.
std::unique_ptr< MCObjectTargetWriter > createNios2ELFObjectWriter(uint8_t OSABI)