OpenASIP
2.0
|
#include <CodeSymElement.hh>
Public Member Functions | |
CodeSymElement () | |
virtual | ~CodeSymElement () |
virtual SymbolType | type () const |
InstructionElement * | reference () const |
void | setReference (InstructionElement *aReference) |
void | setReference (const ReferenceManager::SafePointer *aReference) |
Word | size () const |
void | setSize (Word aSize) |
Public Member Functions inherited from TPEF::SymbolElement | |
SymbolElement () | |
virtual | ~SymbolElement () |
bool | absolute () const |
void | setAbsolute (bool anAbsoluteness) |
SymbolBinding | binding () const |
void | setBinding (SymbolBinding aBinding) |
Chunk * | name () const |
void | setName (Chunk *aName) |
void | setName (const ReferenceManager::SafePointer *aName) |
Section * | section () const |
void | setSection (Section *aSect) |
void | setSection (const ReferenceManager::SafePointer *aSect) |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Private Attributes | |
const ReferenceManager::SafePointer * | reference_ |
Referred object. More... | |
Word | size_ |
Size of referred object in MAUs. More... | |
Additional Inherited Members | |
Public Types inherited from TPEF::SymbolElement | |
enum | SymbolBinding { STB_LOCAL = 0x0, STB_GLOBAL = 0x1, STB_WEAK = 0x2 } |
Binding types of symbol. More... | |
enum | SymbolType { STT_NOTYPE = 0x0, STT_DATA = 0x1, STT_CODE = 0x2, STT_SECTION = 0x3, STT_FILE = 0x4, STT_PROCEDURE = 0x5 } |
Type of symbol element. More... | |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
Code symbol.
Definition at line 46 of file CodeSymElement.hh.
TPEF::CodeSymElement::CodeSymElement | ( | ) |
Constructor.
Definition at line 44 of file CodeSymElement.cc.
|
virtual |
InstructionElement * TPEF::CodeSymElement::reference | ( | ) | const |
Returns object which element refers.
Definition at line 71 of file CodeSymElement.cc.
References TPEF::ReferenceManager::SafePointer::pointer(), and reference_.
Referenced by TTAProgram::TPEFProgramFactory::createLabels(), TPEF::AOutSymbolSectionReader::finalize(), TPEFDumper::section(), TTAProgram::TPEFProgramFactory::seekFunctionStartPoints(), and TPEF::TPEFSymbolSectionWriter::writeValueAndSize().
void TPEF::CodeSymElement::setReference | ( | const ReferenceManager::SafePointer * | aReference | ) |
Sets object which element refers.
aReference | Object which element refers. |
Definition at line 91 of file CodeSymElement.cc.
References reference_.
void TPEF::CodeSymElement::setReference | ( | InstructionElement * | aReference | ) |
Sets object which element refers.
aReference | Object which element refers. |
Definition at line 81 of file CodeSymElement.cc.
References reference_, and TPEF::ReferenceManager::SafePointer::replaceReference().
Referenced by TTAProgram::ProgramWriter::createBinary(), LabelManager::createSymbolWithReference(), TPEF::AOutSymbolSectionReader::finalize(), TPEF::AOutSymbolSectionReader::initializeSymbol(), and LabelManager::writeProcedureSymbols().
void TPEF::CodeSymElement::setSize | ( | Word | aSize | ) |
Sets size of referred object in MAUs.
aSize | of the referred object in MAUs. |
Definition at line 112 of file CodeSymElement.cc.
References size_.
Referenced by TPEF::AOutSymbolSectionReader::finalize().
Word TPEF::CodeSymElement::size | ( | ) | const |
Returns size of the referred object in MAUs.
Definition at line 102 of file CodeSymElement.cc.
References size_.
Referenced by TPEF::AOutSymbolSectionReader::finalize(), and TPEF::TPEFSymbolSectionWriter::writeValueAndSize().
|
virtual |
Returns type of the element.
Implements TPEF::SymbolElement.
Reimplemented in TPEF::ProcedSymElement.
Definition at line 61 of file CodeSymElement.cc.
References TPEF::SymbolElement::STT_CODE.
|
private |
Referred object.
Definition at line 62 of file CodeSymElement.hh.
Referenced by reference(), and setReference().
|
private |
Size of referred object in MAUs.
Definition at line 64 of file CodeSymElement.hh.