Class: LLVM::GlobalVariable
Instance Method Summary
collapse
Methods inherited from GlobalValue
#alignment, #alignment=, #declaration?, #dll_storage_class, #dll_storage_class=, #global_constant=, #global_constant?, #linkage, #linkage=, #section, #section=, #unnamed_addr=, #unnamed_addr?, #visibility, #visibility=
Methods inherited from Constant
#bitcast_to, #gep, null, null_ptr, #ptr_to_int, undef
Methods inherited from User
#operands
Methods inherited from Value
#add_attribute, #allocated_type, #constant?, #dump, from_ptr, from_ptr_kind, #global_parent, #kind, #name, #name=, #null?, #remove_attribute, to_ptr, #to_s, type, #type, #undefined?
#==, #eql?, #hash, #to_ptr
Instance Method Details
#initializer=(val) ⇒ Object
1119
1120
1121
|
# File 'lib/llvm/core/value.rb', line 1119
def initializer=(val)
C.set_initializer(self, val)
end
|
#thread_local=(local) ⇒ Object
1130
1131
1132
|
# File 'lib/llvm/core/value.rb', line 1130
def thread_local=(local)
C.set_thread_local(self, local ? 1 : 0)
end
|
#thread_local? ⇒ Boolean
1123
1124
1125
1126
1127
1128
|
# File 'lib/llvm/core/value.rb', line 1123
def thread_local?
case C.is_thread_local(self)
when 0 then false
else true
end
end
|