On 05/06/2016 09:33 AM, Simon Thijs de Feber wrote:
Has anybody successfully done this or knows how to do that ?
See: http://koji.fedoraproject.org/koji/buildinfo?buildID=746580 and the attached patch. It builds, but I haven't done a lot of tests to see if it works... Thomas
--- ./src/ortho/llvm/llvm-cbindings.cpp 2015-06-06 22:14:15.303908540 +0200 +++ ./src/ortho/llvm/llvm-cbindings.cpp 2015-06-06 22:14:47.670826004 +0200 @@ -50,7 +50,7 @@ void LLVMMDNodeReplaceOperandWith_extra (LLVMValueRef N, unsigned i, LLVMValueRef V) { MDNode *MD = cast<MDNode>(unwrap(N)); - MD->replaceOperandWith (i, unwrap(V)); + MD->replaceOperandWith (i, ValueAsMetadata::get(unwrap(V))); } void *LLVMGetPointerToFunction(LLVMExecutionEngineRef EE, LLVMValueRef Func) --- ./src/ortho/llvm/ortho_code_main.adb 2015-06-06 22:28:25.603010956 +0200 +++ ./src/ortho/llvm/ortho_code_main.adb 2015-06-06 22:28:58.081931596 +0200 @@ -209,8 +209,6 @@ InitializeNativeTarget; InitializeNativeAsmPrinter; - LinkInJIT; - Module := ModuleCreateWithName (Module_Name'Address); if Output = null and then Exec_Func /= null then --- BUILD.txt.x 2016-02-16 14:36:28.308035580 +0100 +++ BUILD.txt 2016-02-16 14:36:36.710289870 +0100 @@ -87,7 +87,7 @@ ****************************** You need to build and install -llvm version 3.5 [do not modify this line as this is read by scripts]. +llvm version 3.8.0 [do not modify this line as this is read by scripts]. (Usually llvm also depends on libedit). First configure ghdl with '--with-llvm-config'
_______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss