LLVM  15.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 
17 namespace llvm {
18 namespace objcopy {
19 namespace xcoff {
20 
21 using namespace object;
22 
23 struct Section {
26  std::vector<XCOFFRelocation32> Relocations;
27 };
28 
29 struct Symbol {
31  // For now, each auxiliary symbol is only an opaque binary blob with no
32  // distinction.
34 };
35 
36 struct 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
llvm::objcopy::xcoff::Symbol
Definition: XCOFFObject.h:29
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::object::XCOFFSectionHeader32
Definition: XCOFFObjectFile.h:171
StringRef.h
llvm::object::XCOFFFileHeader32
Definition: XCOFFObjectFile.h:26
llvm::objcopy::xcoff::Object::Symbols
std::vector< Symbol > Symbols
Definition: XCOFFObject.h:40
llvm::objcopy::xcoff::Section::Contents
ArrayRef< uint8_t > Contents
Definition: XCOFFObject.h:25
XCOFFObjectFile.h
llvm::objcopy::xcoff::Object::StringTable
StringRef StringTable
Definition: XCOFFObject.h:41
llvm::objcopy::xcoff::Section
Definition: XCOFFObject.h:23
object
bar al al movzbl eax ret Missed when stored in a memory object
Definition: README.txt:1411
llvm::objcopy::xcoff::Symbol::AuxSymbolEntries
StringRef AuxSymbolEntries
Definition: XCOFFObject.h:33
ArrayRef.h
llvm::objcopy::xcoff::Symbol::Sym
XCOFFSymbolEntry32 Sym
Definition: XCOFFObject.h:30
llvm::objcopy::xcoff::Section::SectionHeader
XCOFFSectionHeader32 SectionHeader
Definition: XCOFFObject.h:24
llvm::ArrayRef< uint8_t >
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::object::XCOFFAuxiliaryHeader32
Definition: XCOFFObjectFile.h:72
llvm::objcopy::xcoff::Object::OptionalFileHeader
XCOFFAuxiliaryHeader32 OptionalFileHeader
Definition: XCOFFObject.h:38
llvm::objcopy::xcoff::Object::Sections
std::vector< Section > Sections
Definition: XCOFFObject.h:39
llvm::objcopy::xcoff::Object::FileHeader
XCOFFFileHeader32 FileHeader
Definition: XCOFFObject.h:37
llvm::objcopy::xcoff::Section::Relocations
std::vector< XCOFFRelocation32 > Relocations
Definition: XCOFFObject.h:26
llvm::objcopy::xcoff::Object
Definition: XCOFFObject.h:36
llvm::object::XCOFFSymbolEntry32
Definition: XCOFFObjectFile.h:640