Module: Carbon::Core::Main Private

Defined in:
lib/carbon/core/main.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.define_main_function(mod, index, pass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
# File 'lib/carbon/core/main.rb', line 8

def define_main_function(mod, index, pass)
  main_params = [LLVM::Int32.type, LLVM::Int8.type.pointer.pointer]
  main = mod.functions.add("main", main_params, LLVM::Int32.type)
  define_main_definition(mod, main, index, pass)
end