Method: RLTK::CG::BasicBlock#parent

Defined in:
lib/rltk/cg/basic_block.rb

#parentFunction

Returns Function object that this BasicBlock belongs to.

Returns:

  • (Function)

    Function object that this BasicBlock belongs to.



110
111
112
# File 'lib/rltk/cg/basic_block.rb', line 110

def parent
  if (ptr = Bindings.get_basic_block_parent(@ptr)).null? then nil else Function.new(ptr) end
end