LLVM
7.0.0
lib
Target
Nios2
MCTargetDesc
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
10
#include "
MCTargetDesc/Nios2FixupKinds.h
"
11
#include "
MCTargetDesc/Nios2MCExpr.h
"
12
#include "
MCTargetDesc/Nios2MCTargetDesc.h
"
13
#include "
llvm/MC/MCELFObjectWriter.h
"
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)
22
:
MCELFObjectTargetWriter
(
false
, OSABI, ELF::
EM_ALTERA_NIOS2
,
false
) {}
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
33
unsigned
Nios2ELFObjectWriter::getRelocType
(
MCContext
&Ctx,
34
const
MCValue
&
Target
,
35
const
MCFixup
&Fixup,
36
bool
IsPCRel)
const
{
37
return
0;
38
}
39
40
std::unique_ptr<MCObjectTargetWriter>
41
llvm::createNios2ELFObjectWriter
(uint8_t OSABI) {
42
return
llvm::make_unique<Nios2ELFObjectWriter>(OSABI);
43
}
llvm
Compute iterated dominance frontiers using a linear time algorithm.
Definition:
AllocatorList.h:24
llvm::MCValue
This represents an "assembler immediate".
Definition:
MCValue.h:40
llvm::MCFixup
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Definition:
MCFixup.h:74
llvm::ELF::EM_ALTERA_NIOS2
Definition:
ELF.h:227
getRelocType
static unsigned getRelocType(const MCValue &Target, const MCFixupKind FixupKind, const bool IsPCRel)
Translates generic PPC fixup kind to Mach-O/PPC relocation type enum.
Definition:
PPCMachObjectWriter.cpp:83
false
Definition:
StackSlotColoring.cpp:142
Nios2FixupKinds.h
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:63
Nios2MCTargetDesc.h
MCELFObjectWriter.h
llvm::Target
Target - Wrapper for Target specific information.
Definition:
TargetRegistry.h:120
MCObjectWriter.h
Nios2MCExpr.h
llvm::createNios2ELFObjectWriter
std::unique_ptr< MCObjectTargetWriter > createNios2ELFObjectWriter(uint8_t OSABI)
Definition:
Nios2ELFObjectWriter.cpp:41
llvm::MCELFObjectTargetWriter
Definition:
MCELFObjectWriter.h:54
Generated on Thu Aug 23 2018 18:55:41 for LLVM by
1.8.13