Module: LLVM::Target::TargetModule

Extended by:
FFI::Library
Defined in:
lib/llvm/target.rb

Overview

Initializes target target; in particular, TargetInfo, Target and TargetMC.

Class Method Summary collapse

Class Method Details

.safe_attach_function(*args) ⇒ Object

: (*untyped) -> void



34
35
36
37
38
39
40
# File 'lib/llvm/target.rb', line 34

def self.safe_attach_function(*args)
  attach_function(
    *args #: as untyped
  )
rescue FFI::NotFoundError => e
  warn(e.message)
end