[SIL] Remove TranslationUnit pointer from SILModule.

This reverts r8624 and compensates by passing the TU to the SILModule printer when needed.

This addresses concerns that Jordan and Sean had raised.

Swift SVN r8678
This commit is contained in:
Anna Zaks
2013-09-25 23:52:04 +00:00
parent 5268940301
commit 59175bdc08
5 changed files with 46 additions and 39 deletions

View File

@@ -38,10 +38,8 @@ namespace swift {
/// SILModule that these things are uniqued into.
typedef llvm::FoldingSet<SILTypeList> SILTypeListUniquingType;
SILModule::SILModule(TranslationUnit *TU)
: ASTTranslUnit(TU),
Stage(SILStage::Raw),
Types(*this)
SILModule::SILModule(ASTContext &Context)
: TheASTContext(Context), Stage(SILStage::Raw), Types(*this)
{
TypeListUniquing = new SILTypeListUniquingType();
}