mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the type of function values in SIL to SILFunctionType.
Perform major abstraction remappings in SILGen. Introduce thunking functions as necessary to map between abstraction patterns. Swift SVN r10562
This commit is contained in:
@@ -29,14 +29,13 @@ using namespace swift;
|
||||
using namespace irgen;
|
||||
|
||||
IRGenFunction::IRGenFunction(IRGenModule &IGM,
|
||||
ExplosionKind explosionLevel,
|
||||
llvm::Function *Fn,
|
||||
SILDebugScope *DbgScope,
|
||||
Optional<SILLocation> DbgLoc)
|
||||
: IGM(IGM), Builder(IGM.getLLVMContext()),
|
||||
CurFn(Fn), CurExplosionLevel(explosionLevel),
|
||||
ContextPtr(nullptr),
|
||||
DbgScope(DbgScope) {
|
||||
CurFn(Fn), ContextPtr(nullptr), DbgScope(DbgScope)
|
||||
{
|
||||
|
||||
// Make sure the instructions in this function are attached its debug scope.
|
||||
if (IGM.DebugInfo) {
|
||||
// Functions, especially artificial thunks and closures, are often
|
||||
|
||||
Reference in New Issue
Block a user