Skip to content

Commit 4175143

Browse files
author
Ary Borenszweig
committedFeb 13, 2017
LLVM: get_module_context and get_global_parent were available since LLVM 3.5.0
1 parent 009d9bc commit 4175143

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/llvm/lib_llvm.cr

+3-3
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,6 @@ lib LibLLVM
312312
type AttributeRef = Void*
313313
alias AttributeIndex = UInt
314314

315-
fun get_module_context = LLVMGetModuleContext(m : ModuleRef) : ContextRef
316-
fun get_global_parent = LLVMGetGlobalParent(global : ValueRef) : ModuleRef
317-
318315
fun get_last_enum_attribute_kind = LLVMGetLastEnumAttributeKind() : UInt
319316
fun get_enum_attribute_kind_for_name = LLVMGetEnumAttributeKindForName(name : Char*, s_len : LibC::SizeT) : UInt
320317
fun create_enum_attribute = LLVMCreateEnumAttribute(c : ContextRef, kind_id : UInt, val : UInt64) : AttributeRef
@@ -323,6 +320,9 @@ lib LibLLVM
323320
fun add_call_site_attribute = LLVMAddCallSiteAttribute(f : ValueRef, idx : AttributeIndex, value : AttributeRef)
324321
{% end %}
325322

323+
fun get_module_context = LLVMGetModuleContext(m : ModuleRef) : ContextRef
324+
fun get_global_parent = LLVMGetGlobalParent(global : ValueRef) : ModuleRef
325+
326326
fun create_memory_buffer_with_contents_of_file = LLVMCreateMemoryBufferWithContentsOfFile(path : UInt8*, out_mem_buf : MemoryBufferRef*, out_message : UInt8**) : Int32
327327
fun parse_ir_in_context = LLVMParseIRInContext(context : ContextRef, mem_buf : MemoryBufferRef, out_m : ModuleRef*, out_message : UInt8**) : Int32
328328
fun get_module_identifier = LLVMGetModuleIdentifier(m : ModuleRef, len : LibC::SizeT*) : UInt8*

0 commit comments

Comments
 (0)
Please sign in to comment.