Skip to content

Commit

Permalink
LLVM: get_module_context and get_global_parent were available sin…
Browse files Browse the repository at this point in the history
…ce LLVM 3.5.0
  • Loading branch information
Ary Borenszweig committed Feb 13, 2017
1 parent 009d9bc commit 4175143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/llvm/lib_llvm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,6 @@ lib LibLLVM
type AttributeRef = Void*
alias AttributeIndex = UInt

fun get_module_context = LLVMGetModuleContext(m : ModuleRef) : ContextRef
fun get_global_parent = LLVMGetGlobalParent(global : ValueRef) : ModuleRef

fun get_last_enum_attribute_kind = LLVMGetLastEnumAttributeKind() : UInt
fun get_enum_attribute_kind_for_name = LLVMGetEnumAttributeKindForName(name : Char*, s_len : LibC::SizeT) : UInt
fun create_enum_attribute = LLVMCreateEnumAttribute(c : ContextRef, kind_id : UInt, val : UInt64) : AttributeRef
Expand All @@ -323,6 +320,9 @@ lib LibLLVM
fun add_call_site_attribute = LLVMAddCallSiteAttribute(f : ValueRef, idx : AttributeIndex, value : AttributeRef)
{% end %}

fun get_module_context = LLVMGetModuleContext(m : ModuleRef) : ContextRef
fun get_global_parent = LLVMGetGlobalParent(global : ValueRef) : ModuleRef

fun create_memory_buffer_with_contents_of_file = LLVMCreateMemoryBufferWithContentsOfFile(path : UInt8*, out_mem_buf : MemoryBufferRef*, out_message : UInt8**) : Int32
fun parse_ir_in_context = LLVMParseIRInContext(context : ContextRef, mem_buf : MemoryBufferRef, out_m : ModuleRef*, out_message : UInt8**) : Int32
fun get_module_identifier = LLVMGetModuleIdentifier(m : ModuleRef, len : LibC::SizeT*) : UInt8*
Expand Down

0 comments on commit 4175143

Please sign in to comment.