1 //===- XCOFFReader.h --------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H
10 #define LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H
12 #include "XCOFFObject.h"
18 using namespace object
;
22 explicit XCOFFReader(const XCOFFObjectFile
&O
) : XCOFFObj(O
) {}
23 Expected
<std::unique_ptr
<Object
>> create() const;
26 const XCOFFObjectFile
&XCOFFObj
;
27 Error
readSections(Object
&Obj
) const;
28 Error
readSymbols(Object
&Obj
) const;
31 } // end namespace xcoff
32 } // end namespace objcopy
33 } // end namespace llvm
35 #endif // LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H