mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Debug info: name mangling for composite types containing Archetypes.
Among other things this enables mangled names for tuples. This adds a pointer to the DeclContext to SILFunction and which is used to provide the necessary context to the Mangler. Fixes rdar://problem/14808764 and rdar://problem/14813658. Swift SVN r8070
This commit is contained in:
@@ -315,6 +315,7 @@ void SILGenModule::emitFunction(SILDeclRef::Loc decl, FuncExpr *fe) {
|
||||
SILFunction *f = preEmitFunction(constant, fe, fe);
|
||||
SILGenFunction(*this, *f).emitFunction(fe);
|
||||
postEmitFunction(constant, f);
|
||||
f->setDeclContext(fe);
|
||||
|
||||
// If the function is a standalone function and is curried, emit the thunks
|
||||
// for the intermediate curry levels.
|
||||
|
||||
Reference in New Issue
Block a user