Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 479:672eb4893b55
Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 05 Aug 2008 19:28:19 +0200 |
parents | 45a67b6f1310 |
children | aa8c050dfd19 |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Tue Aug 05 08:08:00 2008 +0200 +++ b/gen/llvmhelpers.h Tue Aug 05 19:28:19 2008 +0200 @@ -11,6 +11,10 @@ void DtoDeleteInterface(LLValue* inst); void DtoDeleteArray(DValue* arr); +// emit an alloca +llvm::AllocaInst* DtoAlloca(const LLType* lltype, const std::string& name = ""); +llvm::AllocaInst* DtoAlloca(const LLType* lltype, LLValue* arraysize, const std::string& name = ""); + // assertion generator void DtoAssert(Loc* loc, DValue* msg);