Class: Rubycc::IR::Generator::ObjectRecord
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::IR::Generator::ObjectRecord
- Defined in:
- lib/rubycc/ir/generator.rb
Overview
The merged state of a file-scope object's tentative/real definitions
(6.9.2), one per name in @object_records. type and linkage are the
agreed type and linkage of the run, initialized records whether any
declaration has supplied an initializer (so a second one is a
redefinition), and index locates the object's single IR::Global entry in
@globals, which an initializer arriving after a tentative .bss definition
rewrites in place to .data. Mutable, since a later declaration in the run
updates it.
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#initialized ⇒ Object
Returns the value of attribute initialized.
-
#linkage ⇒ Object
Returns the value of attribute linkage.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
56 57 58 |
# File 'lib/rubycc/ir/generator.rb', line 56 def index @index end |
#initialized ⇒ Object
Returns the value of attribute initialized
56 57 58 |
# File 'lib/rubycc/ir/generator.rb', line 56 def initialized @initialized end |
#linkage ⇒ Object
Returns the value of attribute linkage
56 57 58 |
# File 'lib/rubycc/ir/generator.rb', line 56 def linkage @linkage end |
#type ⇒ Object
Returns the value of attribute type
56 57 58 |
# File 'lib/rubycc/ir/generator.rb', line 56 def type @type end |