Path: blob/main/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/XCOFFReader.h
35269 views
//===- XCOFFReader.h --------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H9#define LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H1011#include "XCOFFObject.h"1213namespace llvm {14namespace objcopy {15namespace xcoff {1617using namespace object;1819class XCOFFReader {20public:21explicit XCOFFReader(const XCOFFObjectFile &O) : XCOFFObj(O) {}22Expected<std::unique_ptr<Object>> create() const;2324private:25const XCOFFObjectFile &XCOFFObj;26Error readSections(Object &Obj) const;27Error readSymbols(Object &Obj) const;28};2930} // end namespace xcoff31} // end namespace objcopy32} // end namespace llvm3334#endif // LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H353637