mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Build function emission around emitting a FuncExpr instead of a FuncDecl.
Swift SVN r610
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user