Home | History | Annotate | Download | only in MCTargetDesc
      1 //===-- AMDGPUELFObjectWriter.cpp - AMDGPU 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 /// \file
      9 //===----------------------------------------------------------------------===//
     10 
     11 #include "AMDGPUMCTargetDesc.h"
     12 #include "llvm/MC/MCELFObjectWriter.h"
     13 
     14 using namespace llvm;
     15 
     16 namespace {
     17 
     18 class AMDGPUELFObjectWriter : public MCELFObjectTargetWriter {
     19 public:
     20   AMDGPUELFObjectWriter();
     21 protected:
     22   unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
     23                         bool IsPCRel) const override {
     24     llvm_unreachable("Not implemented");
     25   }
     26 
     27 };
     28 
     29 
     30 } // End anonymous namespace
     31 
     32 AMDGPUELFObjectWriter::AMDGPUELFObjectWriter()
     33   : MCELFObjectTargetWriter(false, 0, 0, false) { }
     34 
     35 MCObjectWriter *llvm::createAMDGPUELFObjectWriter(raw_ostream &OS) {
     36   MCELFObjectTargetWriter *MOTW = new AMDGPUELFObjectWriter();
     37   return createELFObjectWriter(MOTW, OS, true);
     38 }
     39