[llvm-commits] [PATCH] C Bindings: Allow reading MDNode operands

Duncan Sands baldrick at free.fr
Thu Sep 13 02:00:26 PDT 2012


Hi Anthony,

> (Sorry for sending this to the wrong list earlier.)
>
> This patch just adds two functions: LLVMGetMDNodeNumOperands and
> LLVMGetMDNodeOperands, which allow access to MDNode operands from the
> C API, similarly to how named metadata can be accessed there.
>
> Could this be reviewed and possibly committed please?

if the node isn't an MDNode shouldn't it barf (eg abort)?

Ciao, Duncan.




More information about the llvm-commits mailing list