Ejemplo n.º 1
0
 private LLVMBasicBlockRef WriteReturnBlock(
     LLVMType Type,
     LLVMMethod Implementation,
     LLVMModuleBuilder Module)
 {
     return(WriteReturnBlock(Type.Name.ToString(), Module.DeclareVirtual(Implementation)));
 }
Ejemplo n.º 2
0
        private LLVMValueRef[] GetVTableEntryImpls(
            LLVMModuleBuilder Module,
            List <LLVMMethod> AllEntries)
        {
            var allImpls = new LLVMValueRef[AllEntries.Count];

            for (int i = 0; i < allImpls.Length; i++)
            {
                allImpls[i] = ConstBitCast(
                    Module.DeclareVirtual(AllEntries[i].GetImplementation(this) ?? AllEntries[i]),
                    PointerType(Int8Type(), 0));
            }
            return(allImpls);
        }