search for: dibuilderbindings

Displaying 4 results from an estimated 4 matches for "dibuilderbindings".

2015 Jul 26
0
[LLVMdev] [un]wrapping llvm:DITypeRef
...you to what the Go bindings are doing. First, define wrap/unwrap for llvm::Metadata (of which DIType is a descendant): http://llvm.org/klaus/llvm/blob/master/bindings/go/llvm/IRBindings.h#L-63 Then use wrapped llvm::Metadata in the C API: http://llvm.org/klaus/llvm/blob/master/bindings/go/llvm/DIBuilderBindings.h (You could have DIType-specific wrap/unwrap too, using the same method.) HTH, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150726/2b53a0c4/attachment.html>
2015 Jul 27
2
[LLVMdev] [un]wrapping llvm:DITypeRef
...gs are doing. > > First, define wrap/unwrap for llvm::Metadata (of which DIType is a descendant): > http://llvm.org/klaus/llvm/blob/master/bindings/go/llvm/IRBindings.h#L-63 > > Then use wrapped llvm::Metadata in the C API: > http://llvm.org/klaus/llvm/blob/master/bindings/go/llvm/DIBuilderBindings.h > > (You could have DIType-specific wrap/unwrap too, using the same method.) > My problem is not DIType, it's DITypeRef. This was added sometime after 3.4.2 and by 3.6.1. It is used, e.g. for formal parameter Ty of DIBuilder::createLocalVariable. These Go bindings apparently have...
2015 Jul 25
4
[LLVMdev] [un]wrapping llvm:DITypeRef
In trying to write a C binding for DIBuilder of llvm 3.6.1, I can't see a way to unwrap llvm::DITypeRef, declared in include/llvm/IR/DebugInfo.h. This is a class with one data member, a pointer to Metadata. If I try to make my C type a struct with one pointer, I can't cast it to DITypeRef. If I try to go inside the classes and use the pointer, I can cast, but can't construct a
2015 Jul 27
0
[LLVMdev] [un]wrapping llvm:DITypeRef
...gt;> First, define wrap/unwrap for llvm::Metadata (of which DIType is a descendant): >> http://llvm.org/klaus/llvm/blob/master/bindings/go/llvm/IRBindings.h#L-63 >> >> Then use wrapped llvm::Metadata in the C API: >> http://llvm.org/klaus/llvm/blob/master/bindings/go/llvm/DIBuilderBindings.h >> >> (You could have DIType-specific wrap/unwrap too, using the same method.) >> > > My problem is not DIType, it's DITypeRef. This was added sometime after 3.4.2 and > by 3.6.1. It is used, e.g. for formal parameter Ty of DIBuilder::createLocalVariable. > The...