Removed "SourceFile" from TranslationUnit. This same information will (soon)
be available by querying the SourceManager within the ASTContext referenced by
the TranslationUnit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45223 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/TranslationUnit.cpp b/AST/TranslationUnit.cpp
index 41d9c79..8c68e35 100644
--- a/AST/TranslationUnit.cpp
+++ b/AST/TranslationUnit.cpp
@@ -99,11 +99,7 @@
// Block for SourceManager, LangOptions, and Target. Allows easy skipping
// around to the block for the Selectors during deserialization.
Sezr.EnterBlock();
-
- // Emit the name of the source file.
- Sezr.EmitCStr(SourceFile.c_str());
- Sezr.FlushRecord();
-
+
// Emit the SourceManager.
Sezr.Emit(Context->getSourceManager());
@@ -186,12 +182,6 @@
FoundBlock = Dezr.SkipToBlock(BasicMetadataBlock);
assert (FoundBlock);
- { // Read the SourceFile.
- char* SName = Dezr.ReadCStr(NULL,0,true);
- TU->SourceFile = SName;
- delete [] SName;
- }
-
// Read the SourceManager.
SourceManager::CreateAndRegister(Dezr,FMgr);