LLVM 20.0.0git
XCOFFObject.h
Go to the documentation of this file.
1//===- XCOFFObject.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_XCOFFOBJECT_H
10#define LLVM_LIB_OBJCOPY_XCOFF_XCOFFOBJECT_H
11
12#include "llvm/ADT/ArrayRef.h"
13#include "llvm/ADT/StringRef.h"
15#include <vector>
16
17namespace llvm {
18namespace objcopy {
19namespace xcoff {
20
21using namespace object;
22
23struct Section {
26 std::vector<XCOFFRelocation32> Relocations;
27};
28
29struct Symbol {
31 // For now, each auxiliary symbol is only an opaque binary blob with no
32 // distinction.
34};
35
36struct Object {
39 std::vector<Section> Sections;
40 std::vector<Symbol> Symbols;
42};
43
44} // end namespace xcoff
45} // end namespace objcopy
46} // end namespace llvm
47
48#endif // LLVM_LIB_OBJCOPY_XCOFF_XCOFFOBJECT_H
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
XCOFFAuxiliaryHeader32 OptionalFileHeader
Definition: XCOFFObject.h:38
std::vector< Symbol > Symbols
Definition: XCOFFObject.h:40
XCOFFFileHeader32 FileHeader
Definition: XCOFFObject.h:37
std::vector< Section > Sections
Definition: XCOFFObject.h:39
std::vector< XCOFFRelocation32 > Relocations
Definition: XCOFFObject.h:26
ArrayRef< uint8_t > Contents
Definition: XCOFFObject.h:25
XCOFFSectionHeader32 SectionHeader
Definition: XCOFFObject.h:24
XCOFFSymbolEntry32 Sym
Definition: XCOFFObject.h:30