I’m not aware of whether one exists in 2.7 (it didn’t in 2.6 IIRC), but it’s
pretty easy to write one up for yourself if necessary. I did something like this
using 2.6:
void *LLVMGetPointerToFunction(LLVMExecutionEngineRef compiler, LLVMValueRef
function) {
llvm::ExecutionEngine *cppCompiler = llvm::unwrap(compiler);
llvm::Function *cppFunction = llvm::unwrap<llvm::Function>(function);
return cppCompiler->getPointerToFunction(cppFunction);
}
Rob
On 2010-05-11, at 3:19 AM, Georg Troxler wrote:
> Hi,
>
> Is there such a function (or a similar one) which is callable using the
c-binding llvm?
>
> Many thanks,
>
> Georg
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
--
Rob Rix, Unknown Quantity
Monochrome Industries
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20100511/8897be01/attachment.html>