comparison ir/irfunction.cpp @ 1051:dc608dc33081

Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the same LDC call.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Mar 2009 14:25:30 +0100
parents 32ead42679d1
children 8699c450a1a0
comparison
equal deleted inserted replaced
1050:32ead42679d1 1051:dc608dc33081
3 #include "gen/tollvm.h" 3 #include "gen/tollvm.h"
4 #include "gen/abi.h" 4 #include "gen/abi.h"
5 #include "gen/dvalue.h" 5 #include "gen/dvalue.h"
6 #include "gen/logger.h" 6 #include "gen/logger.h"
7 #include "ir/irfunction.h" 7 #include "ir/irfunction.h"
8 #include "ir/irfuncty.h"
8 9
9 #include <sstream> 10 #include <sstream>
10 11
11 ////////////////////////////////////////////////////////////////////////////// 12 //////////////////////////////////////////////////////////////////////////////
12 ////////////////////////////////////////////////////////////////////////////// 13 //////////////////////////////////////////////////////////////////////////////
18 ltype = bref ? DtoType(t->pointerTo()) : DtoType(t); 19 ltype = bref ? DtoType(t->pointerTo()) : DtoType(t);
19 attrs = a; 20 attrs = a;
20 byref = bref; 21 byref = bref;
21 rewrite = NULL; 22 rewrite = NULL;
22 } 23 }
24
25 bool IrFuncTyArg::isInReg() const { return (attrs & llvm::Attribute::InReg) != 0; }
26 bool IrFuncTyArg::isSRet() const { return (attrs & llvm::Attribute::StructRet) != 0; }
27 bool IrFuncTyArg::isByVal() const { return (attrs & llvm::Attribute::ByVal) != 0; }
23 28
24 ////////////////////////////////////////////////////////////////////////////// 29 //////////////////////////////////////////////////////////////////////////////
25 ////////////////////////////////////////////////////////////////////////////// 30 //////////////////////////////////////////////////////////////////////////////
26 ////////////////////////////////////////////////////////////////////////////// 31 //////////////////////////////////////////////////////////////////////////////
27 32