mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the
same LDC call.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "gen/dvalue.h"
|
||||
#include "gen/logger.h"
|
||||
#include "ir/irfunction.h"
|
||||
#include "ir/irfuncty.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
@@ -21,6 +22,10 @@ IrFuncTyArg::IrFuncTyArg(Type* t, bool bref, unsigned a)
|
||||
rewrite = NULL;
|
||||
}
|
||||
|
||||
bool IrFuncTyArg::isInReg() const { return (attrs & llvm::Attribute::InReg) != 0; }
|
||||
bool IrFuncTyArg::isSRet() const { return (attrs & llvm::Attribute::StructRet) != 0; }
|
||||
bool IrFuncTyArg::isByVal() const { return (attrs & llvm::Attribute::ByVal) != 0; }
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user