LLVM 22.0.0git
llvm::object::XCOFFSymbolRef Class Reference

#include "llvm/Object/XCOFFObjectFile.h"

Inheritance diagram for llvm::object::XCOFFSymbolRef:
[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
LLVM_ABI Expected< StringRefgetName () const
LLVM_ABI Expected< boolisFunction () const
LLVM_ABI bool isCsectSymbol () const
LLVM_ABI 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 792 of file XCOFFObjectFile.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NAME_IN_STR_TBL_MAGIC 

Definition at line 794 of file XCOFFObjectFile.h.

Constructor & Destructor Documentation

◆ XCOFFSymbolRef()

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

Member Function Documentation

◆ getCPUTypeIddForCFile()

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

Definition at line 845 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 839 of file XCOFFObjectFile.h.

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

◆ getName()

◆ getNumberOfAuxEntries()

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

Definition at line 853 of file XCOFFObjectFile.h.

References GETVALUE.

Referenced by getXCOFFCsectAuxRef().

◆ getSectionNumber()

◆ getSize()

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

◆ getStorageClass()

◆ 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 837 of file XCOFFObjectFile.h.

References GETVALUE.

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

◆ getValue()

◆ getValue32()

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

◆ getValue64()

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

◆ getXCOFFCsectAuxRef()

◆ isCsectSymbol()

◆ isFunction()


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