1*81ad6265SDimitry Andric //===- SPIRVObjectTargetWriter.cpp - SPIR-V Object Target Writer *- C++ -*-===// 2*81ad6265SDimitry Andric // 3*81ad6265SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*81ad6265SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*81ad6265SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*81ad6265SDimitry Andric // 7*81ad6265SDimitry Andric //===----------------------------------------------------------------------===// 8*81ad6265SDimitry Andric 9*81ad6265SDimitry Andric #include "SPIRVMCTargetDesc.h" 10*81ad6265SDimitry Andric #include "llvm/MC/MCSPIRVObjectWriter.h" 11*81ad6265SDimitry Andric 12*81ad6265SDimitry Andric using namespace llvm; 13*81ad6265SDimitry Andric 14*81ad6265SDimitry Andric namespace { 15*81ad6265SDimitry Andric 16*81ad6265SDimitry Andric class SPIRVObjectTargetWriter : public MCSPIRVObjectTargetWriter { 17*81ad6265SDimitry Andric public: 18*81ad6265SDimitry Andric SPIRVObjectTargetWriter() = default; 19*81ad6265SDimitry Andric }; 20*81ad6265SDimitry Andric 21*81ad6265SDimitry Andric } // namespace 22*81ad6265SDimitry Andric createSPIRVObjectTargetWriter()23*81ad6265SDimitry Andricstd::unique_ptr<MCObjectTargetWriter> llvm::createSPIRVObjectTargetWriter() { 24*81ad6265SDimitry Andric return std::make_unique<SPIRVObjectTargetWriter>(); 25*81ad6265SDimitry Andric } 26