IRGen: Remove IRGenModule::CurSourceFile

This commit is contained in:
Slava Pestov
2020-02-11 01:44:52 -05:00
parent ff283d5c4f
commit 836a0b9722
3 changed files with 0 additions and 8 deletions

View File

@@ -1585,12 +1585,6 @@ void IRGenModule::emitSILFunction(SILFunction *f) {
return;
PrettyStackTraceSILFunction stackTrace("emitting IR", f);
llvm::SaveAndRestore<SourceFile *> SetCurSourceFile(CurSourceFile);
if (auto dc = f->getModule().getAssociatedContext()) {
if (auto sf = dc->getParentSourceFile()) {
CurSourceFile = sf;
}
}
IRGenSILFunction(*this, f).emitSILFunction();
}