Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/XCOFFReader.h
35269 views
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
14
namespace llvm {
15
namespace objcopy {
16
namespace xcoff {
17
18
using namespace object;
19
20
class XCOFFReader {
21
public:
22
explicit XCOFFReader(const XCOFFObjectFile &O) : XCOFFObj(O) {}
23
Expected<std::unique_ptr<Object>> create() const;
24
25
private:
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
36
37