LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
llvm::object::XCOFFObjectFile Class Reference

#include "llvm/Object/XCOFFObjectFile.h"

Inheritance diagram for llvm::object::XCOFFObjectFile:
Inheritance graph
[legend]
Collaboration diagram for llvm::object::XCOFFObjectFile:
Collaboration graph
[legend]

Public Member Functions

void moveSymbolNext (DataRefImpl &Symb) const override
 
Expected< uint32_tgetSymbolFlags (DataRefImpl Symb) const override
 
basic_symbol_iterator symbol_begin () const override
 
basic_symbol_iterator symbol_end () const override
 
Expected< StringRefgetSymbolName (DataRefImpl Symb) const override
 
Expected< uint64_t > getSymbolAddress (DataRefImpl Symb) const override
 
uint64_t getSymbolValueImpl (DataRefImpl Symb) const override
 
uint64_t getCommonSymbolSizeImpl (DataRefImpl Symb) const override
 
Expected< SymbolRef::TypegetSymbolType (DataRefImpl Symb) const override
 
Expected< section_iteratorgetSymbolSection (DataRefImpl Symb) const override
 
void moveSectionNext (DataRefImpl &Sec) const override
 
Expected< StringRefgetSectionName (DataRefImpl Sec) const override
 
uint64_t getSectionAddress (DataRefImpl Sec) const override
 
uint64_t getSectionIndex (DataRefImpl Sec) const override
 
uint64_t getSectionSize (DataRefImpl Sec) const override
 
Expected< ArrayRef< uint8_t > > getSectionContents (DataRefImpl Sec) const override
 
uint64_t getSectionAlignment (DataRefImpl Sec) const override
 
bool isSectionCompressed (DataRefImpl Sec) const override
 
bool isSectionText (DataRefImpl Sec) const override
 
bool isSectionData (DataRefImpl Sec) const override
 
bool isSectionBSS (DataRefImpl Sec) const override
 
bool isDebugSection (DataRefImpl Sec) const override
 
bool isSectionVirtual (DataRefImpl Sec) const override
 
relocation_iterator section_rel_begin (DataRefImpl Sec) const override
 
relocation_iterator section_rel_end (DataRefImpl Sec) const override
 
void moveRelocationNext (DataRefImpl &Rel) const override
 
uint64_t getRelocationOffset (DataRefImpl Rel) const override
 
symbol_iterator getRelocationSymbol (DataRefImpl Rel) const override
 
uint64_t getRelocationType (DataRefImpl Rel) const override
 
void getRelocationTypeName (DataRefImpl Rel, SmallVectorImpl< char > &Result) const override
 
section_iterator section_begin () const override
 
section_iterator section_end () const override
 
uint8_t getBytesInAddress () const override
 The number of bytes used to represent an address in this object file format. More...
 
StringRef getFileFormatName () const override
 
Triple::ArchType getArch () const override
 
SubtargetFeatures getFeatures () const override
 
Expected< uint64_t > getStartAddress () const override
 
StringRef mapDebugSectionName (StringRef Name) const override
 Maps a debug section name to a standard DWARF section name. More...
 
bool isRelocatableObject () const override
 True if this is a relocatable object (.o/.obj). More...
 
bool is64Bit () const
 
const void * getPointerToSymbolTable () const
 
Expected< StringRefgetSymbolSectionName (XCOFFSymbolRef Ref) const
 
unsigned getSymbolSectionID (SymbolRef Sym) const
 
XCOFFSymbolRef toSymbolRef (DataRefImpl Ref) const
 
uint16_t getMagic () const
 
uint16_t getNumberOfSections () const
 
int32_t getTimeStamp () const
 
uint32_t getSymbolTableOffset32 () const
 
uint64_t getSymbolTableOffset64 () const
 
int32_t getRawNumberOfSymbolTableEntries32 () const
 
uint32_t getLogicalNumberOfSymbolTableEntries32 () const
 
uint32_t getNumberOfSymbolTableEntries64 () const
 
uint32_t getNumberOfSymbolTableEntries () const
 
uint32_t getSymbolIndex (uintptr_t SymEntPtr) const
 
uintptr_t getSymbolEntryAddressByIndex (uint32_t SymbolTableIndex) const
 
Expected< StringRefgetSymbolNameByIndex (uint32_t SymbolTableIndex) const
 
Expected< StringRefgetCFileName (const XCOFFFileAuxEnt *CFileEntPtr) const
 
uint16_t getOptionalHeaderSize () const
 
uint16_t getFlags () const
 
ArrayRef< XCOFFSectionHeader32sections32 () const
 
ArrayRef< XCOFFSectionHeader64sections64 () const
 
int32_t getSectionFlags (DataRefImpl Sec) const
 
Expected< DataRefImplgetSectionByNum (int16_t Num) const
 
void checkSymbolEntryPointer (uintptr_t SymbolEntPtr) const
 
Expected< uint32_tgetLogicalNumberOfRelocationEntries (const XCOFFSectionHeader32 &Sec) const
 
Expected< ArrayRef< XCOFFRelocation32 > > relocations (const XCOFFSectionHeader32 &) const
 
Expected< StringRefgetStringTableEntry (uint32_t Offset) const
 
StringRef getStringTable () const
 
const XCOFF::SymbolAuxTypegetSymbolAuxType (uintptr_t AuxEntryAddress) const
 
- Public Member Functions inherited from llvm::object::ObjectFile
 ObjectFile ()=delete
 
 ObjectFile (const ObjectFile &other)=delete
 
uint64_t getCommonSymbolSize (DataRefImpl Symb) const
 
virtual std::vector< SectionRefdynamic_relocation_sections () const
 
symbol_iterator_range symbols () const
 
section_iterator_range sections () const
 
virtual Optional< StringReftryGetCPUName () const
 
virtual void setARMSubArch (Triple &TheTriple) const
 
Triple makeTriple () const
 Create a triple from the data in this object file. More...
 
- Public Member Functions inherited from llvm::object::SymbolicFile
 SymbolicFile (unsigned int Type, MemoryBufferRef Source)
 
 ~SymbolicFile () override
 
basic_symbol_iterator_range symbols () const
 
- Public Member Functions inherited from llvm::object::Binary
 Binary ()=delete
 
 Binary (const Binary &other)=delete
 
virtual ~Binary ()
 
virtual Error initContent ()
 
StringRef getData () const
 
StringRef getFileName () const
 
MemoryBufferRef getMemoryBufferRef () const
 
unsigned int getType () const
 
bool isObject () const
 
bool isSymbolic () const
 
bool isArchive () const
 
bool isMachOUniversalBinary () const
 
bool isTapiUniversal () const
 
bool isELF () const
 
bool isMachO () const
 
bool isCOFF () const
 
bool isXCOFF () const
 
bool isWasm () const
 
bool isCOFFImportFile () const
 
bool isIR () const
 
bool isMinidump () const
 
bool isTapiFile () const
 
bool isLittleEndian () const
 
bool isWinRes () const
 
Triple::ObjectFormatType getTripleObjectFormat () const
 

Static Public Member Functions

static uintptr_t getAdvancedSymbolEntryAddress (uintptr_t CurrentAddress, uint32_t Distance)
 
static bool classof (const Binary *B)
 
- Static Public Member Functions inherited from llvm::object::ObjectFile
static Expected< OwningBinary< ObjectFile > > createObjectFile (StringRef ObjectPath)
 
static Expected< std::unique_ptr< ObjectFile > > createObjectFile (MemoryBufferRef Object, llvm::file_magic Type, bool InitContent=true)
 
static Expected< std::unique_ptr< ObjectFile > > createObjectFile (MemoryBufferRef Object)
 
static bool classof (const Binary *v)
 
static Expected< std::unique_ptr< COFFObjectFile > > createCOFFObjectFile (MemoryBufferRef Object)
 
static Expected< std::unique_ptr< ObjectFile > > createXCOFFObjectFile (MemoryBufferRef Object, unsigned FileType)
 
static Expected< std::unique_ptr< ObjectFile > > createELFObjectFile (MemoryBufferRef Object, bool InitContent=true)
 
static Expected< std::unique_ptr< MachOObjectFile > > createMachOObjectFile (MemoryBufferRef Object, uint32_t UniversalCputype=0, uint32_t UniversalIndex=0)
 
static Expected< std::unique_ptr< WasmObjectFile > > createWasmObjectFile (MemoryBufferRef Object)
 
- Static Public Member Functions inherited from llvm::object::SymbolicFile
static Expected< std::unique_ptr< SymbolicFile > > createSymbolicFile (MemoryBufferRef Object, llvm::file_magic Type, LLVMContext *Context, bool InitContent=true)
 
static Expected< std::unique_ptr< SymbolicFile > > createSymbolicFile (MemoryBufferRef Object)
 
static bool classof (const Binary *v)
 
static bool isSymbolicFile (file_magic Type, const LLVMContext *Context)
 
- Static Public Member Functions inherited from llvm::object::Binary
static Error checkOffset (MemoryBufferRef M, uintptr_t Addr, const uint64_t Size)
 

Static Public Attributes

static constexpr uint64_t InvalidRelocOffset
 

Friends

Expected< std::unique_ptr< ObjectFile > > ObjectFile::createXCOFFObjectFile (MemoryBufferRef Object, unsigned FileType)
 

Additional Inherited Members

- Public Types inherited from llvm::object::ObjectFile
using symbol_iterator_range = iterator_range< symbol_iterator >
 
using section_iterator_range = iterator_range< section_iterator >
 
- Public Types inherited from llvm::object::SymbolicFile
using basic_symbol_iterator_range = iterator_range< basic_symbol_iterator >
 
- Protected Types inherited from llvm::object::Binary
enum  {
  ID_Archive, ID_MachOUniversalBinary, ID_COFFImportFile, ID_IR,
  ID_TapiUniversal, ID_TapiFile, ID_Minidump, ID_WinRes,
  ID_StartObjects, ID_COFF, ID_XCOFF32, ID_XCOFF64,
  ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B,
  ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B,
  ID_Wasm, ID_EndObjects
}
 
- Protected Member Functions inherited from llvm::object::ObjectFile
 ObjectFile (unsigned int Type, MemoryBufferRef Source)
 
const uint8_t * base () const
 
Error printSymbolName (raw_ostream &OS, DataRefImpl Symb) const override
 
virtual uint32_t getSymbolAlignment (DataRefImpl Symb) const
 
virtual bool isSectionBitcode (DataRefImpl Sec) const
 
virtual bool isSectionStripped (DataRefImpl Sec) const
 
virtual bool isBerkeleyText (DataRefImpl Sec) const
 
virtual bool isBerkeleyData (DataRefImpl Sec) const
 
virtual Expected< section_iteratorgetRelocatedSection (DataRefImpl Sec) const
 
Expected< uint64_t > getSymbolValue (DataRefImpl Symb) const
 
- Protected Member Functions inherited from llvm::object::Binary
 Binary (unsigned int Type, MemoryBufferRef Source)
 
- Static Protected Member Functions inherited from llvm::object::Binary
static unsigned int getELFType (bool isLE, bool is64Bits)
 
static unsigned int getMachOType (bool isLE, bool is64Bits)
 
- Protected Attributes inherited from llvm::object::Binary
MemoryBufferRef Data
 

Detailed Description

Definition at line 265 of file XCOFFObjectFile.h.

Member Function Documentation

◆ checkSymbolEntryPointer()

void llvm::object::XCOFFObjectFile::checkSymbolEntryPointer ( uintptr_t  SymbolEntPtr) const

◆ classof()

static bool llvm::object::XCOFFObjectFile::classof ( const Binary B)
inlinestatic

Definition at line 435 of file XCOFFObjectFile.h.

References B.

◆ getAdvancedSymbolEntryAddress()

uintptr_t llvm::object::XCOFFObjectFile::getAdvancedSymbolEntryAddress ( uintptr_t  CurrentAddress,
uint32_t  Distance 
)
static

◆ getArch()

Triple::ArchType llvm::object::XCOFFObjectFile::getArch ( ) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 442 of file XCOFFObjectFile.cpp.

References is64Bit(), llvm::Triple::ppc, and llvm::Triple::ppc64.

◆ getBytesInAddress()

uint8_t llvm::object::XCOFFObjectFile::getBytesInAddress ( ) const
overridevirtual

The number of bytes used to represent an address in this object file format.

Implements llvm::object::ObjectFile.

Definition at line 436 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getCFileName()

Expected< StringRef > llvm::object::XCOFFObjectFile::getCFileName ( const XCOFFFileAuxEnt CFileEntPtr) const

◆ getCommonSymbolSizeImpl()

uint64_t llvm::object::XCOFFObjectFile::getCommonSymbolSizeImpl ( DataRefImpl  Symb) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 213 of file XCOFFObjectFile.cpp.

References llvm_unreachable.

◆ getFeatures()

SubtargetFeatures llvm::object::XCOFFObjectFile::getFeatures ( ) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 446 of file XCOFFObjectFile.cpp.

◆ getFileFormatName()

StringRef llvm::object::XCOFFObjectFile::getFileFormatName ( ) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 438 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getFlags()

uint16_t llvm::object::XCOFFObjectFile::getFlags ( ) const

Definition at line 622 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getLogicalNumberOfRelocationEntries()

Expected< uint32_t > llvm::object::XCOFFObjectFile::getLogicalNumberOfRelocationEntries ( const XCOFFSectionHeader32 Sec) const

◆ getLogicalNumberOfSymbolTableEntries32()

uint32_t llvm::object::XCOFFObjectFile::getLogicalNumberOfSymbolTableEntries32 ( ) const

Definition at line 559 of file XCOFFObjectFile.cpp.

◆ getMagic()

uint16_t llvm::object::XCOFFObjectFile::getMagic ( ) const

Definition at line 491 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getNumberOfSections()

uint16_t llvm::object::XCOFFObjectFile::getNumberOfSections ( ) const

Definition at line 534 of file XCOFFObjectFile.cpp.

References is64Bit().

Referenced by sections32(), and sections64().

◆ getNumberOfSymbolTableEntries()

uint32_t llvm::object::XCOFFObjectFile::getNumberOfSymbolTableEntries ( ) const

Definition at line 573 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getNumberOfSymbolTableEntries64()

uint32_t llvm::object::XCOFFObjectFile::getNumberOfSymbolTableEntries64 ( ) const

Definition at line 569 of file XCOFFObjectFile.cpp.

◆ getOptionalHeaderSize()

uint16_t llvm::object::XCOFFObjectFile::getOptionalHeaderSize ( ) const

Definition at line 543 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getPointerToSymbolTable()

const void* llvm::object::XCOFFObjectFile::getPointerToSymbolTable ( ) const
inline

Definition at line 371 of file XCOFFObjectFile.h.

◆ getRawNumberOfSymbolTableEntries32()

int32_t llvm::object::XCOFFObjectFile::getRawNumberOfSymbolTableEntries32 ( ) const

Definition at line 552 of file XCOFFObjectFile.cpp.

◆ getRelocationOffset()

uint64_t llvm::object::XCOFFObjectFile::getRelocationOffset ( DataRefImpl  Rel) const
overridevirtual
Returns
the relocation offset with the base address of the containing section as zero, or InvalidRelocOffset on errors (such as a relocation that does not refer to an address in any section).

Implements llvm::object::ObjectFile.

Definition at line 356 of file XCOFFObjectFile.cpp.

References i, is64Bit(), llvm::object::DataRefImpl::p, llvm::report_fatal_error(), llvm::object::XCOFFSectionHeader32::SectionSize, llvm::object::XCOFFSectionHeader32::VirtualAddress, and llvm::object::XCOFFRelocation32::VirtualAddress.

◆ getRelocationSymbol()

symbol_iterator llvm::object::XCOFFObjectFile::getRelocationSymbol ( DataRefImpl  Rel) const
overridevirtual

◆ getRelocationType()

uint64_t llvm::object::XCOFFObjectFile::getRelocationType ( DataRefImpl  Rel) const
overridevirtual

◆ getRelocationTypeName()

void llvm::object::XCOFFObjectFile::getRelocationTypeName ( DataRefImpl  Rel,
SmallVectorImpl< char > &  Result 
) const
overridevirtual

◆ getSectionAddress()

uint64_t llvm::object::XCOFFObjectFile::getSectionAddress ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 248 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getSectionAlignment()

uint64_t llvm::object::XCOFFObjectFile::getSectionAlignment ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 294 of file XCOFFObjectFile.cpp.

References llvm_unreachable.

◆ getSectionByNum()

Expected< DataRefImpl > llvm::object::XCOFFObjectFile::getSectionByNum ( int16_t  Num) const

◆ getSectionContents()

Expected< ArrayRef< uint8_t > > llvm::object::XCOFFObjectFile::getSectionContents ( DataRefImpl  Sec) const
overridevirtual

◆ getSectionFlags()

int32_t llvm::object::XCOFFObjectFile::getSectionFlags ( DataRefImpl  Sec) const

Definition at line 634 of file XCOFFObjectFile.cpp.

References is64Bit().

Referenced by llvm::object::XCOFFSymbolRef::isFunction().

◆ getSectionIndex()

uint64_t llvm::object::XCOFFObjectFile::getSectionIndex ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 257 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getSectionName()

Expected< StringRef > llvm::object::XCOFFObjectFile::getSectionName ( DataRefImpl  Sec) const
overridevirtual

◆ getSectionSize()

uint64_t llvm::object::XCOFFObjectFile::getSectionSize ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 266 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ getStartAddress()

Expected< uint64_t > llvm::object::XCOFFObjectFile::getStartAddress ( ) const
overridevirtual

Reimplemented from llvm::object::ObjectFile.

Definition at line 456 of file XCOFFObjectFile.cpp.

◆ getStringTable()

StringRef llvm::object::XCOFFObjectFile::getStringTable ( ) const

Definition at line 190 of file XCOFFObjectFile.cpp.

◆ getStringTableEntry()

Expected< StringRef > llvm::object::XCOFFObjectFile::getStringTableEntry ( uint32_t  Offset) const

Definition at line 174 of file XCOFFObjectFile.cpp.

References Offset.

Referenced by llvm::object::XCOFFSymbolRef::getName().

◆ getSymbolAddress()

Expected< uint64_t > llvm::object::XCOFFObjectFile::getSymbolAddress ( DataRefImpl  Symb) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 205 of file XCOFFObjectFile.cpp.

◆ getSymbolAuxType()

const XCOFF::SymbolAuxType * llvm::object::XCOFFObjectFile::getSymbolAuxType ( uintptr_t  AuxEntryAddress) const

◆ getSymbolEntryAddressByIndex()

uintptr_t llvm::object::XCOFFObjectFile::getSymbolEntryAddressByIndex ( uint32_t  SymbolTableIndex) const

Definition at line 605 of file XCOFFObjectFile.cpp.

References Index.

◆ getSymbolFlags()

Expected< uint32_t > llvm::object::XCOFFObjectFile::getSymbolFlags ( DataRefImpl  Symb) const
overridevirtual

Implements llvm::object::SymbolicFile.

Definition at line 404 of file XCOFFObjectFile.cpp.

◆ getSymbolIndex()

uint32_t llvm::object::XCOFFObjectFile::getSymbolIndex ( uintptr_t  SymEntPtr) const

Definition at line 599 of file XCOFFObjectFile.cpp.

References llvm::XCOFF::SymbolTableEntrySize.

◆ getSymbolName()

Expected< StringRef > llvm::object::XCOFFObjectFile::getSymbolName ( DataRefImpl  Symb) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 201 of file XCOFFObjectFile.cpp.

◆ getSymbolNameByIndex()

Expected< StringRef > llvm::object::XCOFFObjectFile::getSymbolNameByIndex ( uint32_t  SymbolTableIndex) const

◆ getSymbolSection()

Expected< section_iterator > llvm::object::XCOFFObjectFile::getSymbolSection ( DataRefImpl  Symb) const
overridevirtual

◆ getSymbolSectionID()

unsigned llvm::object::XCOFFObjectFile::getSymbolSectionID ( SymbolRef  Sym) const

◆ getSymbolSectionName()

Expected< StringRef > llvm::object::XCOFFObjectFile::getSymbolSectionName ( XCOFFSymbolRef  Ref) const

◆ getSymbolTableOffset32()

uint32_t llvm::object::XCOFFObjectFile::getSymbolTableOffset32 ( ) const

Definition at line 548 of file XCOFFObjectFile.cpp.

◆ getSymbolTableOffset64()

uint64_t llvm::object::XCOFFObjectFile::getSymbolTableOffset64 ( ) const

Definition at line 565 of file XCOFFObjectFile.cpp.

◆ getSymbolType()

Expected< SymbolRef::Type > llvm::object::XCOFFObjectFile::getSymbolType ( DataRefImpl  Symb) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 220 of file XCOFFObjectFile.cpp.

◆ getSymbolValueImpl()

uint64_t llvm::object::XCOFFObjectFile::getSymbolValueImpl ( DataRefImpl  Symb) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 209 of file XCOFFObjectFile.cpp.

◆ getTimeStamp()

int32_t llvm::object::XCOFFObjectFile::getTimeStamp ( ) const

Definition at line 539 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ is64Bit()

bool llvm::object::XCOFFObjectFile::is64Bit ( ) const

◆ isDebugSection()

bool llvm::object::XCOFFObjectFile::isDebugSection ( DataRefImpl  Sec) const
overridevirtual

Reimplemented from llvm::object::ObjectFile.

Definition at line 318 of file XCOFFObjectFile.cpp.

References getSectionFlags(), llvm::XCOFF::STYP_DEBUG, and llvm::XCOFF::STYP_DWARF.

◆ isRelocatableObject()

bool llvm::object::XCOFFObjectFile::isRelocatableObject ( ) const
overridevirtual

True if this is a relocatable object (.o/.obj).

Implements llvm::object::ObjectFile.

Definition at line 450 of file XCOFFObjectFile.cpp.

References is64Bit(), and llvm::object::NoRelMask.

◆ isSectionBSS()

bool llvm::object::XCOFFObjectFile::isSectionBSS ( DataRefImpl  Sec) const
overridevirtual

◆ isSectionCompressed()

bool llvm::object::XCOFFObjectFile::isSectionCompressed ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 300 of file XCOFFObjectFile.cpp.

◆ isSectionData()

bool llvm::object::XCOFFObjectFile::isSectionData ( DataRefImpl  Sec) const
overridevirtual

◆ isSectionText()

bool llvm::object::XCOFFObjectFile::isSectionText ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 304 of file XCOFFObjectFile.cpp.

References getSectionFlags(), and llvm::XCOFF::STYP_TEXT.

◆ isSectionVirtual()

bool llvm::object::XCOFFObjectFile::isSectionVirtual ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 323 of file XCOFFObjectFile.cpp.

References is64Bit().

◆ mapDebugSectionName()

StringRef llvm::object::XCOFFObjectFile::mapDebugSectionName ( StringRef  Name) const
overridevirtual

Maps a debug section name to a standard DWARF section name.

Reimplemented from llvm::object::ObjectFile.

Definition at line 462 of file XCOFFObjectFile.cpp.

References llvm::StringSwitch< T, R >::Case(), and llvm::StringSwitch< T, R >::Default().

◆ moveRelocationNext()

void llvm::object::XCOFFObjectFile::moveRelocationNext ( DataRefImpl Rel) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 352 of file XCOFFObjectFile.cpp.

References llvm::object::DataRefImpl::p.

◆ moveSectionNext()

void llvm::object::XCOFFObjectFile::moveSectionNext ( DataRefImpl Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 239 of file XCOFFObjectFile.cpp.

References llvm::object::DataRefImpl::p.

◆ moveSymbolNext()

void llvm::object::XCOFFObjectFile::moveSymbolNext ( DataRefImpl Symb) const
overridevirtual

Implements llvm::object::SymbolicFile.

Definition at line 161 of file XCOFFObjectFile.cpp.

References llvm::object::DataRefImpl::p.

◆ relocations()

Expected< ArrayRef< XCOFFRelocation32 > > llvm::object::XCOFFObjectFile::relocations ( const XCOFFSectionHeader32 Sec) const

◆ section_begin()

section_iterator llvm::object::XCOFFObjectFile::section_begin ( ) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 423 of file XCOFFObjectFile.cpp.

References llvm::object::DataRefImpl::p.

◆ section_end()

section_iterator llvm::object::XCOFFObjectFile::section_end ( ) const
overridevirtual

◆ section_rel_begin()

relocation_iterator llvm::object::XCOFFObjectFile::section_rel_begin ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 328 of file XCOFFObjectFile.cpp.

References E, is64Bit(), llvm::report_fatal_error(), and llvm::MipsISD::Ret.

◆ section_rel_end()

relocation_iterator llvm::object::XCOFFObjectFile::section_rel_end ( DataRefImpl  Sec) const
overridevirtual

Implements llvm::object::ObjectFile.

Definition at line 340 of file XCOFFObjectFile.cpp.

References E, is64Bit(), llvm::report_fatal_error(), and llvm::MipsISD::Ret.

◆ sections32()

ArrayRef< XCOFFSectionHeader32 > llvm::object::XCOFFObjectFile::sections32 ( ) const

Definition at line 650 of file XCOFFObjectFile.cpp.

References assert(), getNumberOfSections(), and is64Bit().

Referenced by getLogicalNumberOfRelocationEntries().

◆ sections64()

ArrayRef< XCOFFSectionHeader64 > llvm::object::XCOFFObjectFile::sections64 ( ) const

Definition at line 643 of file XCOFFObjectFile.cpp.

References assert(), getNumberOfSections(), and is64Bit().

◆ symbol_begin()

basic_symbol_iterator llvm::object::XCOFFObjectFile::symbol_begin ( ) const
overridevirtual

Implements llvm::object::SymbolicFile.

Definition at line 410 of file XCOFFObjectFile.cpp.

References llvm::object::DataRefImpl::p.

◆ symbol_end()

basic_symbol_iterator llvm::object::XCOFFObjectFile::symbol_end ( ) const
overridevirtual

Implements llvm::object::SymbolicFile.

Definition at line 416 of file XCOFFObjectFile.cpp.

References llvm::object::DataRefImpl::p.

◆ toSymbolRef()

XCOFFSymbolRef llvm::object::XCOFFObjectFile::toSymbolRef ( DataRefImpl  Ref) const

Definition at line 131 of file XCOFFObjectFile.cpp.

References assert(), and llvm::Ref.

Friends And Related Function Documentation

◆ ObjectFile::createXCOFFObjectFile

Expected<std::unique_ptr<ObjectFile> > ObjectFile::createXCOFFObjectFile ( MemoryBufferRef  Object,
unsigned  FileType 
)
friend

Member Data Documentation

◆ InvalidRelocOffset

constexpr uint64_t llvm::object::XCOFFObjectFile::InvalidRelocOffset
staticconstexpr
Initial value:

Definition at line 313 of file XCOFFObjectFile.h.


The documentation for this class was generated from the following files:
llvm::max
Align max(MaybeAlign Lhs, Align Rhs)
Definition: Alignment.h:340