LLVM  14.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::XCOFFSymbolInfo Struct Reference

#include "llvm/MC/MCDisassembler/MCDisassembler.h"

Collaboration diagram for llvm::XCOFFSymbolInfo:
Collaboration graph

Public Member Functions

 XCOFFSymbolInfo (Optional< XCOFF::StorageMappingClass > Smc, Optional< uint32_t > Idx, bool Label)
bool operator< (const XCOFFSymbolInfo &SymInfo) const
 The function is for symbol sorting when symbols have the same address. More...

Public Attributes

Optional< XCOFF::StorageMappingClassStorageMappingClass
Optional< uint32_tIndex
bool IsLabel

Detailed Description

Definition at line 22 of file MCDisassembler.h.

Constructor & Destructor Documentation

◆ XCOFFSymbolInfo()

llvm::XCOFFSymbolInfo::XCOFFSymbolInfo ( Optional< XCOFF::StorageMappingClass Smc,
Optional< uint32_t Idx,
bool  Label 

Definition at line 26 of file MCDisassembler.h.

Member Function Documentation

◆ operator<()

bool XCOFFSymbolInfo::operator< ( const XCOFFSymbolInfo SymInfo) const

The function is for symbol sorting when symbols have the same address.

The symbols in the same section are sorted in ascending order. llvm-objdump -D will choose the highest priority symbol to display when there are symbols with the same address.

Definition at line 82 of file MCDisassembler.cpp.

References getSMCPriority(), and IsLabel.

Member Data Documentation

◆ Index

Optional<uint32_t> llvm::XCOFFSymbolInfo::Index

Definition at line 24 of file MCDisassembler.h.

◆ IsLabel

bool llvm::XCOFFSymbolInfo::IsLabel

Definition at line 25 of file MCDisassembler.h.

Referenced by operator<().

◆ StorageMappingClass

Optional<XCOFF::StorageMappingClass> llvm::XCOFFSymbolInfo::StorageMappingClass

Definition at line 23 of file MCDisassembler.h.

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