Class: Rubycc::IR::ArrayEntry
- Inherits:
-
Data
- Object
- Data
- Rubycc::IR::ArrayEntry
- Defined in:
- lib/rubycc/ir/ir.rb
Overview
One entry this translation unit contributes to an initializer/finalizer
array. symbol names a function defined here that the runtime is to
call: kind is :init for a constructor (the loader calls it before main,
or at dlopen) or :fini for a destructor (at exit, or at dlclose), and
priority is its run-order number, the compiler's
ELFWriter::DEFAULT_ARRAY_PRIORITY standing for the unnumbered form. The
compiler turns each entry into an 8-byte slot in the matching
SHT_INIT_ARRAY / SHT_FINI_ARRAY section plus an absolute 64-bit relocation
against symbol.
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind
401 402 403 |
# File 'lib/rubycc/ir/ir.rb', line 401 def kind @kind end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority
401 402 403 |
# File 'lib/rubycc/ir/ir.rb', line 401 def priority @priority end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol
401 402 403 |
# File 'lib/rubycc/ir/ir.rb', line 401 def symbol @symbol end |