1 //===-- DirectXContainerObjectWriter.cpp - DX object writer ----*- C++ -*--===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file contains DXContainer object writers for the DirectX backend. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #include "DirectXContainerObjectWriter.h" 14 #include "llvm/MC/MCDXContainerWriter.h" 15 16 using namespace llvm; 17 18 namespace { 19 class DirectXContainerObjectWriter : public MCDXContainerTargetWriter { 20 public: DirectXContainerObjectWriter()21 DirectXContainerObjectWriter() : MCDXContainerTargetWriter() {} 22 }; 23 } // namespace 24 25 std::unique_ptr<MCObjectTargetWriter> createDXContainerTargetObjectWriter()26llvm::createDXContainerTargetObjectWriter() { 27 return std::make_unique<DirectXContainerObjectWriter>(); 28 } 29