brintos

brintos / llvm-project-archived public Read only

0
0
Text · 968 B · 63a8d85 Raw
36 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H10#define LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H11 12#include "XCOFFObject.h"13 14namespace llvm {15namespace objcopy {16namespace xcoff {17 18using namespace object;19 20class XCOFFReader {21public:22  explicit XCOFFReader(const XCOFFObjectFile &O) : XCOFFObj(O) {}23  Expected<std::unique_ptr<Object>> create() const;24 25private:26  const XCOFFObjectFile &XCOFFObj;27  Error readSections(Object &Obj) const;28  Error readSymbols(Object &Obj) const;29};30 31} // end namespace xcoff32} // end namespace objcopy33} // end namespace llvm34 35#endif // LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H36