comparison gen/functions.h @ 213:7816aafeea3c trunk

[svn r229] Updated the object.d implementation to the latest Tango. Fixed a bunch of the built-in typeinfos for arrays, they did not inherit TypeInfo_Array. Applied patch to tango/text/convert/Layout.d by fvbommel, closes #47 . Cleaned up some type code. Replaced uses of llvm::Type with LLType (a typedef), same for Value and Constant. Fixed a few cases where typeinfo for user structs could be emitted multiple times, seems to still be some cases of this :/
author lindquist
date Fri, 30 May 2008 19:32:04 +0200
parents 5825d48b27d1
children 9760f54af0b7
comparison
equal deleted inserted replaced
212:4c2689d57ba4 213:7816aafeea3c
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 LLType* thistype, bool ismain = false);
5 const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl); 5 const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl);
6 6
7 const llvm::FunctionType* DtoBaseFunctionType(FuncDeclaration* fdecl); 7 const llvm::FunctionType* DtoBaseFunctionType(FuncDeclaration* fdecl);
8 8
9 void DtoResolveFunction(FuncDeclaration* fdecl); 9 void DtoResolveFunction(FuncDeclaration* fdecl);
10 void DtoDeclareFunction(FuncDeclaration* fdecl); 10 void DtoDeclareFunction(FuncDeclaration* fdecl);
11 void DtoDefineFunc(FuncDeclaration* fd); 11 void DtoDefineFunc(FuncDeclaration* fd);
12 12
13 DValue* DtoArgument(Argument* fnarg, Expression* argexp); 13 DValue* DtoArgument(Argument* fnarg, Expression* argexp);
14 void DtoVariadicArgument(Expression* argexp, llvm::Value* dst); 14 void DtoVariadicArgument(Expression* argexp, LLValue* dst);
15 15
16 void DtoMain(); 16 void DtoMain();
17 17
18 #endif 18 #endif