1//===- DXContainerReader.h --------------------------------------*- 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#ifndef LLVM_LIB_OBJCOPY_DXCONTAINER_DXCONTAINERREADER_H
10#define LLVM_LIB_OBJCOPY_DXCONTAINER_DXCONTAINERREADER_H
11
12#include "DXContainerObject.h"
13
14namespace llvm {
15namespace objcopy {
16namespace dxbc {
17
18using namespace object;
19
20class DXContainerReader {
21public:
22 explicit DXContainerReader(const DXContainerObjectFile &Obj)
23 : DXContainerObj(Obj) {}
24 Expected<std::unique_ptr<Object>> create() const;
25
26private:
27 const DXContainerObjectFile &DXContainerObj;
28};
29
30} // end namespace dxbc
31} // end namespace objcopy
32} // end namespace llvm
33
34#endif // LLVM_LIB_OBJCOPY_DXCONTAINER_DXCONTAINERREADER_H
35