comparison gen/functions.h @ 117:56a21f3e5d3e trunk

[svn r121] Finished ModuleInfo implementation. Static ctors/dtors now work according to spec. Changed class vtable types slightly in some cases. Overridden functions now always take the the type of the first class declaring the method as this parameter. This helps when using headers (w. implementation somewhere else)
author lindquist
date Mon, 26 Nov 2007 04:49:23 +0100
parents 027b8d8b71ec
children 5825d48b27d1
comparison
equal deleted inserted replaced
116:fd7ad91fd713 117:56a21f3e5d3e
1 #ifndef LLVMDC_GEN_FUNCTIONS_H 1 #ifndef LLVMDC_GEN_FUNCTIONS_H
2 #define LLVMDC_GEN_FUNCTIONS_H 2 #define LLVMDC_GEN_FUNCTIONS_H
3 3
4 const llvm::FunctionType* DtoFunctionType(Type* t, const llvm::Type* thistype, bool ismain = false); 4 const llvm::FunctionType* DtoFunctionType(Type* t, const llvm::Type* thistype, bool ismain = false);
5 const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl); 5 const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl);
6
7 const llvm::FunctionType* DtoBaseFunctionType(FuncDeclaration* fdecl);
6 8
7 void DtoResolveFunction(FuncDeclaration* fdecl); 9 void DtoResolveFunction(FuncDeclaration* fdecl);
8 void DtoDeclareFunction(FuncDeclaration* fdecl); 10 void DtoDeclareFunction(FuncDeclaration* fdecl);
9 void DtoDefineFunc(FuncDeclaration* fd); 11 void DtoDefineFunc(FuncDeclaration* fd);
10 12