[win/asan] GetInstructionSize: Fix `83 E4 XX` to return 3. (#119644)
[llvm-project.git] / llvm / lib / ObjCopy / XCOFF / XCOFFReader.h
blob63a8d8579d37be291195fbe4bbad53df9f57ea11
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H
10 #define LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H
12 #include "XCOFFObject.h"
14 namespace llvm {
15 namespace objcopy {
16 namespace xcoff {
18 using namespace object;
20 class XCOFFReader {
21 public:
22 explicit XCOFFReader(const XCOFFObjectFile &O) : XCOFFObj(O) {}
23 Expected<std::unique_ptr<Object>> create() const;
25 private:
26 const XCOFFObjectFile &XCOFFObj;
27 Error readSections(Object &Obj) const;
28 Error readSymbols(Object &Obj) const;
31 } // end namespace xcoff
32 } // end namespace objcopy
33 } // end namespace llvm
35 #endif // LLVM_LIB_OBJCOPY_XCOFF_XCOFFREADER_H