Exemplo n.º 1
0
 public MDNode this[int index]
 {
     get
     {
         var nodeHanlde = NativeMethods.NamedMDNodeGetOperand(OwningNode.NativeHandle, (uint)index);
         return(LlvmMetadata.FromHandle <MDNode>(OwningNode.ParentModule.Context, nodeHanlde));
     }
 }
Exemplo n.º 2
0
            public MDNode this[int index]
            {
                get
                {
                    var nodeHanlde = LLVMNamedMDNodeGetOperand(OwningNode.NativeHandle, (uint)index);
                    return(LlvmMetadata.FromHandle <MDNode>(OwningNode.ParentModule.Context, nodeHanlde));
                }

                /* TODO:
                 * set
                 * {   index.VerifyRange(0, Count, nameof(index));
                 *  LLVMNamedMDNodeSetOperand( index, value.NativeHandle );
                 * }
                 */
            }
Exemplo n.º 3
0
            public MDNode this[int index]
            {
                get
                {
                    index.ValidateRange(0, Count, nameof(index));
                    var nodeHanlde = LibLLVMNamedMDNodeGetOperand(OwningNode.NativeHandle, ( uint )index);
                    return(LlvmMetadata.FromHandle <MDNode>(OwningNode.ParentModule.Context, nodeHanlde));
                }

                set
                {
                    index.ValidateRange(0, Count, nameof(index));
                    LibLLVMNamedMDNodeSetOperand(OwningNode.NativeHandle, ( uint )index, value.MetadataHandle);
                }
            }