Class: Rubycc::IR::ArrayEntry

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



401
402
403
# File 'lib/rubycc/ir/ir.rb', line 401

def kind
  @kind
end

#priorityObject (readonly)

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



401
402
403
# File 'lib/rubycc/ir/ir.rb', line 401

def priority
  @priority
end

#symbolObject (readonly)

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



401
402
403
# File 'lib/rubycc/ir/ir.rb', line 401

def symbol
  @symbol
end