diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-12-19 22:24:34 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-12-19 22:24:34 +0000 |
| commit | 6c7807716b807eff65c8a173a4673c44fe62ab48 (patch) | |
| tree | ea842976fcd02ba6c9607f4759ff5f5ed12ecff2 /clang/AST | |
| parent | 7bd082e188413d2e0485f5a579aff5eab7c1457f (diff) | |
| download | bcm5719-llvm-6c7807716b807eff65c8a173a4673c44fe62ab48.tar.gz bcm5719-llvm-6c7807716b807eff65c8a173a4673c44fe62ab48.zip | |
Removed "SourceFile" from TranslationUnit. This same information will (soon)
be available by querying the SourceManager within the ASTContext referenced by
the TranslationUnit.
llvm-svn: 45223
Diffstat (limited to 'clang/AST')
| -rw-r--r-- | clang/AST/TranslationUnit.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/clang/AST/TranslationUnit.cpp b/clang/AST/TranslationUnit.cpp index 41d9c79f89a..8c68e35dcdf 100644 --- a/clang/AST/TranslationUnit.cpp +++ b/clang/AST/TranslationUnit.cpp @@ -99,11 +99,7 @@ void TranslationUnit::Emit(llvm::Serializer& Sezr) const { // 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 @@ TranslationUnit* TranslationUnit::Create(llvm::Deserializer& Dezr, 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); |

