LLVM 20.0.0git
XCOFFReader.h
Go to the documentation of this file.
1//===- XCOFFReader.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_XCOFF_XCOFFREADER_H
10#define LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H
11
12#include "XCOFFObject.h"
13
14namespace llvm {
15namespace objcopy {
16namespace xcoff {
17
18using namespace object;
19
21public:
22 explicit XCOFFReader(const XCOFFObjectFile &O) : XCOFFObj(O) {}
24
25private:
26 const XCOFFObjectFile &XCOFFObj;
27 Error readSections(Object &Obj) const;
28 Error readSymbols(Object &Obj) const;
29};
30
31} // end namespace xcoff
32} // end namespace objcopy
33} // end namespace llvm
34
35#endif // LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
Tagged union holding either a T or a Error.
Definition: Error.h:481
XCOFFReader(const XCOFFObjectFile &O)
Definition: XCOFFReader.h:22
Expected< std::unique_ptr< Object > > create() const
Definition: XCOFFReader.cpp:75
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18