mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Get rid of the implicit BraceStmt for the TranslationUnit; instead, have the TranslationUnit directly store a list of decls.
Swift SVN r1521
This commit is contained in:
@@ -67,7 +67,7 @@ swift::buildSingleTranslationUnit(ASTContext &Context, unsigned BufferID,
|
||||
if (!ParseOnly) {
|
||||
performNameBinding(TU, CurTUElem);
|
||||
performTypeChecking(TU, CurTUElem);
|
||||
CurTUElem = TU->Body->getNumElements();
|
||||
CurTUElem = TU->Decls.size();
|
||||
}
|
||||
} while (BufferOffset != Buffer->getBufferSize());
|
||||
|
||||
@@ -88,7 +88,7 @@ bool swift::appendToMainTranslationUnit(TranslationUnit *TU, unsigned BufferID,
|
||||
performNameBinding(TU, CurTUElem);
|
||||
performTypeChecking(TU, CurTUElem);
|
||||
}
|
||||
CurTUElem = TU->Body->getNumElements();
|
||||
CurTUElem = TU->Decls.size();
|
||||
} while (BufferOffset != BufferEndOffset);
|
||||
return FoundAnySideEffects;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user