mirror of
https://github.com/jeremysrand/llvm-65816.git
synced 2024-11-05 00:06:07 +00:00
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
|
//===-- AMDGPUELFObjectWriter.cpp - AMDGPU ELF Writer ----------------------==//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
/// \file
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "AMDGPUMCTargetDesc.h"
|
||
|
#include "llvm/MC/MCELFObjectWriter.h"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
namespace {
|
||
|
|
||
|
class AMDGPUELFObjectWriter : public MCELFObjectTargetWriter {
|
||
|
public:
|
||
|
AMDGPUELFObjectWriter();
|
||
|
protected:
|
||
|
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
|
||
|
bool IsPCRel, bool IsRelocWithSymbol,
|
||
|
int64_t Addend) const {
|
||
|
llvm_unreachable("Not implemented");
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
} // End anonymous namespace
|
||
|
|
||
|
AMDGPUELFObjectWriter::AMDGPUELFObjectWriter()
|
||
|
: MCELFObjectTargetWriter(false, 0, 0, false) { }
|
||
|
|
||
|
MCObjectWriter *llvm::createAMDGPUELFObjectWriter(raw_ostream &OS) {
|
||
|
MCELFObjectTargetWriter *MOTW = new AMDGPUELFObjectWriter();
|
||
|
return createELFObjectWriter(MOTW, OS, true);
|
||
|
}
|