private LLVMBasicBlockRef WriteReturnBlock( LLVMType Type, LLVMMethod Implementation, LLVMModuleBuilder Module) { return(WriteReturnBlock(Type.Name.ToString(), Module.DeclareVirtual(Implementation))); }
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); }