You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.247
Former-commit-id: 2d6af2e4ed0eda5cbdc2946446ef7718456ad190
This commit is contained in:
parent
279aa8f685
commit
ce8e504569
@ -1,44 +0,0 @@
|
||||
//===-- Nios2ELFObjectWriter.cpp - Nios2 ELF Writer -----------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "MCTargetDesc/Nios2FixupKinds.h"
|
||||
#include "MCTargetDesc/Nios2MCExpr.h"
|
||||
#include "MCTargetDesc/Nios2MCTargetDesc.h"
|
||||
#include "llvm/MC/MCELFObjectWriter.h"
|
||||
#include "llvm/MC/MCObjectWriter.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class Nios2ELFObjectWriter : public MCELFObjectTargetWriter {
|
||||
public:
|
||||
Nios2ELFObjectWriter(uint8_t OSABI)
|
||||
: MCELFObjectTargetWriter(false, OSABI, ELF::EM_ALTERA_NIOS2, false) {}
|
||||
|
||||
~Nios2ELFObjectWriter() override;
|
||||
|
||||
unsigned getRelocType(MCContext &Ctx, const MCValue &Target,
|
||||
const MCFixup &Fixup, bool IsPCRel) const override;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Nios2ELFObjectWriter::~Nios2ELFObjectWriter() {}
|
||||
|
||||
unsigned Nios2ELFObjectWriter::getRelocType(MCContext &Ctx,
|
||||
const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::unique_ptr<MCObjectWriter>
|
||||
llvm::createNios2ELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI) {
|
||||
auto MOTW = llvm::make_unique<Nios2ELFObjectWriter>(OSABI);
|
||||
return createELFObjectWriter(std::move(MOTW), OS, true);
|
||||
}
|
Reference in New Issue
Block a user