Build function emission around emitting a FuncExpr instead of a FuncDecl.

Swift SVN r610
This commit is contained in:
John McCall
2011-08-25 07:55:02 +00:00
parent e749b07d97
commit b2bbab90f4
3 changed files with 17 additions and 11 deletions

View File

@@ -23,8 +23,8 @@
using namespace swift;
using namespace irgen;
IRGenFunction::IRGenFunction(IRGenModule &IGM, FuncDecl *FD, llvm::Function *Fn)
: IGM(IGM), Builder(IGM.getLLVMContext()), CurDecl(FD), CurFn(Fn) {
IRGenFunction::IRGenFunction(IRGenModule &IGM, FuncExpr *FE, llvm::Function *Fn)
: IGM(IGM), Builder(IGM.getLLVMContext()), CurFuncExpr(FE), CurFn(Fn) {
}
/// Create an alloca whose lifetime is the duration of the current