Interned MainFileID within SourceManager. Since SourceManager is referenced by

both Preprocessor and ASTContext, we no longer need to explicitly pass
MainFileID around in function calls that also pass either Preprocessor or
ASTContext. This resulted in some nice cleanups in the ASTConsumers and the
driver.

llvm-svn: 45228
This commit is contained in:
Ted Kremenek
2007-12-19 22:51:13 +00:00
parent f7bfae6b45
commit 230bd918b2
12 changed files with 48 additions and 50 deletions

View File

@@ -42,7 +42,7 @@ public:
~SerializationTest();
virtual void Initialize(ASTContext& context, unsigned) {
virtual void Initialize(ASTContext& context) {
TU.setContext(&context);
}