view gen/functions.h @ 488:993b217af574

Error if there is no this in a call requiring this. Fixes: nocompile/b/bug_type_308_G,H nocompile/bug_e2ir_814 nocompile/i/inline_18_A,B nocompile/inline_07 nocompile/static_09
author Christian Kamm <kamm incasoftware de>
date Sun, 10 Aug 2008 10:50:53 +0200
parents a34078905d01
children eef8ac26c66c
line wrap: on
line source

#ifndef LLVMDC_GEN_FUNCTIONS_H
#define LLVMDC_GEN_FUNCTIONS_H

const llvm::FunctionType* DtoFunctionType(Type* t, const LLType* thistype, const LLType* nesttype, bool ismain = false);
const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl);

const llvm::FunctionType* DtoBaseFunctionType(FuncDeclaration* fdecl);

void DtoResolveFunction(FuncDeclaration* fdecl);
void DtoDeclareFunction(FuncDeclaration* fdecl);
void DtoDefineFunc(FuncDeclaration* fd);

DValue* DtoArgument(Argument* fnarg, Expression* argexp);
void DtoVariadicArgument(Expression* argexp, LLValue* dst);

#endif