LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::object::XCOFFSymbolRef Class Reference

#include "llvm/Object/XCOFFObjectFile.h"

Inheritance diagram for llvm::object::XCOFFSymbolRef:
Inheritance graph
[legend]

Public Types

enum  { NAME_IN_STR_TBL_MAGIC = 0x0 }
 
- Public Types inherited from llvm::object::SymbolRef
enum  Type {
  ST_Unknown , ST_Other , ST_Data , ST_Debug ,
  ST_File , ST_Function
}
 
- Public Types inherited from llvm::object::BasicSymbolRef
enum  Flags : unsigned {
  SF_None = 0 , SF_Undefined = 1U << 0 , SF_Global = 1U << 1 , SF_Weak = 1U << 2 ,
  SF_Absolute = 1U << 3 , SF_Common = 1U << 4 , SF_Indirect = 1U << 5 , SF_Exported = 1U << 6 ,
  SF_FormatSpecific = 1U << 7 , SF_Thumb = 1U << 8 , SF_Hidden = 1U << 9 , SF_Const = 1U << 10 ,
  SF_Executable = 1U << 11
}
 

Public Member Functions

 XCOFFSymbolRef (DataRefImpl SymEntDataRef, const XCOFFObjectFile *OwningObjectPtr)
 
const XCOFFSymbolEntry32getSymbol32 () const
 
const XCOFFSymbolEntry64getSymbol64 () const
 
uint64_t getValue () const
 
uint32_t getValue32 () const
 
uint64_t getValue64 () const
 
uint64_t getSize () const
 
int16_t getSectionNumber () const
 
uint16_t getSymbolType () const
 
uint8_t getLanguageIdForCFile () const
 
uint8_t getCPUTypeIddForCFile () const
 
XCOFF::StorageClass getStorageClass () const
 
uint8_t getNumberOfAuxEntries () const
 
uintptr_t getEntryAddress () const
 
Expected< StringRefgetName () const
 
Expected< boolisFunction () const
 
bool isCsectSymbol () const
 
Expected< XCOFFCsectAuxRefgetXCOFFCsectAuxRef () const
 
- Public Member Functions inherited from llvm::object::SymbolRef
 SymbolRef ()=default
 
 SymbolRef (DataRefImpl SymbolP, const ObjectFile *Owner)
 
 SymbolRef (const BasicSymbolRef &B)
 
Expected< StringRefgetName () const
 
Expected< uint64_tgetAddress () const
 Returns the symbol virtual address (i.e.
 
Expected< uint64_tgetValue () const
 Return the value of the symbol depending on the object this can be an offset or a virtual address.
 
uint32_t getAlignment () const
 Get the alignment of this symbol as the actual value (not log 2).
 
uint64_t getCommonSize () const
 
Expected< SymbolRef::TypegetType () const
 
Expected< section_iteratorgetSection () const
 Get section this symbol is defined in reference to.
 
const ObjectFilegetObject () const
 
- Public Member Functions inherited from llvm::object::BasicSymbolRef
 BasicSymbolRef ()=default
 
 BasicSymbolRef (DataRefImpl SymbolP, const SymbolicFile *Owner)
 
bool operator== (const BasicSymbolRef &Other) const
 
bool operator< (const BasicSymbolRef &Other) const
 
void moveNext ()
 
Error printName (raw_ostream &OS) const
 
Expected< uint32_tgetFlags () const
 Get symbol flags (bitwise OR of SymbolRef::Flags)
 
DataRefImpl getRawDataRefImpl () const
 
const SymbolicFilegetObject () const
 

Detailed Description

Definition at line 786 of file XCOFFObjectFile.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NAME_IN_STR_TBL_MAGIC 

Definition at line 788 of file XCOFFObjectFile.h.

Constructor & Destructor Documentation

◆ XCOFFSymbolRef()

llvm::object::XCOFFSymbolRef::XCOFFSymbolRef ( DataRefImpl  SymEntDataRef,
const XCOFFObjectFile OwningObjectPtr 
)
inline

Definition at line 790 of file XCOFFObjectFile.h.

References assert(), and llvm::object::DataRefImpl::p.

Member Function Documentation

◆ getCPUTypeIddForCFile()

uint8_t llvm::object::XCOFFSymbolRef::getCPUTypeIddForCFile ( ) const
inline

Definition at line 839 of file XCOFFObjectFile.h.

References assert(), llvm::XCOFF::C_FILE, getStorageClass(), and GETVALUE.

◆ getEntryAddress()

uintptr_t llvm::object::XCOFFSymbolRef::getEntryAddress ( ) const
inline

◆ getLanguageIdForCFile()

uint8_t llvm::object::XCOFFSymbolRef::getLanguageIdForCFile ( ) const
inline

Definition at line 833 of file XCOFFObjectFile.h.

References assert(), llvm::XCOFF::C_FILE, getStorageClass(), and GETVALUE.

◆ getName()

Expected< StringRef > llvm::object::XCOFFSymbolRef::getName ( ) const

◆ getNumberOfAuxEntries()

uint8_t llvm::object::XCOFFSymbolRef::getNumberOfAuxEntries ( ) const
inline

Definition at line 847 of file XCOFFObjectFile.h.

References GETVALUE.

Referenced by getXCOFFCsectAuxRef().

◆ getSectionNumber()

int16_t llvm::object::XCOFFSymbolRef::getSectionNumber ( ) const
inline

◆ getSize()

uint64_t llvm::object::XCOFFSymbolRef::getSize ( ) const
inline

◆ getStorageClass()

XCOFF::StorageClass llvm::object::XCOFFSymbolRef::getStorageClass ( ) const
inline

◆ getSymbol32()

const XCOFFSymbolEntry32 * llvm::object::XCOFFSymbolRef::getSymbol32 ( ) const
inline

◆ getSymbol64()

const XCOFFSymbolEntry64 * llvm::object::XCOFFSymbolRef::getSymbol64 ( ) const
inline

◆ getSymbolType()

uint16_t llvm::object::XCOFFSymbolRef::getSymbolType ( ) const
inline

Definition at line 831 of file XCOFFObjectFile.h.

References GETVALUE.

Referenced by llvm::object::XCOFFObjectFile::getSymbolFlags(), and isFunction().

◆ getValue()

uint64_t llvm::object::XCOFFSymbolRef::getValue ( ) const
inline

◆ getValue32()

uint32_t llvm::object::XCOFFSymbolRef::getValue32 ( ) const
inline

◆ getValue64()

uint64_t llvm::object::XCOFFSymbolRef::getValue64 ( ) const
inline

◆ getXCOFFCsectAuxRef()

Expected< XCOFFCsectAuxRef > llvm::object::XCOFFSymbolRef::getXCOFFCsectAuxRef ( ) const

◆ isCsectSymbol()

bool llvm::object::XCOFFSymbolRef::isCsectSymbol ( ) const

◆ isFunction()

Expected< bool > llvm::object::XCOFFSymbolRef::isFunction ( ) const

The documentation for this class was generated from the following files: