コード例 #1
0
        protected override LLVMValueRef ValueAsTypeInternal(LLVMTypeRef type, LLVMBuilderRef builder, bool signExtend)
        {
            LLVMTypeRef  origLLVMType = ILImporter.GetLLVMTypeForTypeDesc(Type);
            LLVMValueRef value        = _importer.LoadTemp(LocalIndex, origLLVMType);

            return(ILImporter.CastIfNecessary(builder, value, type));
        }
コード例 #2
0
 protected override LLVMValueRef ValueAsTypeInternal(LLVMTypeRef type, LLVMBuilderRef builder, bool signExtend)
 {
     return(_importer.LoadTemp(LocalIndex, type));
 }