Path: blob/main/contrib/llvm-project/llvm/lib/ObjCopy/COFF/COFFReader.h
35267 views
//===- COFFReader.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_COFF_COFFREADER_H9#define LLVM_LIB_OBJCOPY_COFF_COFFREADER_H1011#include "llvm/BinaryFormat/COFF.h"12#include "llvm/Object/COFF.h"13#include "llvm/Support/Error.h"1415namespace llvm {16namespace objcopy {17namespace coff {1819struct Object;2021using object::COFFObjectFile;2223class COFFReader {24const COFFObjectFile &COFFObj;2526Error readExecutableHeaders(Object &Obj) const;27Error readSections(Object &Obj) const;28Error readSymbols(Object &Obj, bool IsBigObj) const;29Error setSymbolTargets(Object &Obj) const;3031public:32explicit COFFReader(const COFFObjectFile &O) : COFFObj(O) {}33Expected<std::unique_ptr<Object>> create() const;34};3536} // end namespace coff37} // end namespace objcopy38} // end namespace llvm3940#endif // LLVM_LIB_OBJCOPY_COFF_COFFREADER_H414243