diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-26 20:15:21 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-26 20:15:21 +0000 |
commit | b4fd6a61414b7c379178b6d79e7e422d2a148d34 (patch) | |
tree | e490e59d7078c12af93953a8952f80b44b0b3c2a /clang/lib/Basic/SourceManager.cpp | |
parent | 36e85a867b448dec4ab805c869de1512cb1a7b2c (diff) | |
download | bcm5719-llvm-b4fd6a61414b7c379178b6d79e7e422d2a148d34.tar.gz bcm5719-llvm-b4fd6a61414b7c379178b6d79e7e422d2a148d34.zip |
Remove some redundant setup when preprocessing .pcm files.
Both of these steps are immediately overwritten by the FrontendAction setup.
llvm-svn: 306325
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index fc4c6d30380..3936afab21a 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -359,15 +359,6 @@ void SourceManager::initializeForReplay(const SourceManager &Old) { return Clone; }; - // Set up our main file ID as a copy of the old source manager's main file. - const SLocEntry &OldMainFile = Old.getSLocEntry(Old.getMainFileID()); - assert(OldMainFile.isFile() && "main file is macro expansion?"); - auto *MainCC = CloneContentCache(OldMainFile.getFile().getContentCache()); - MemBufferInfos.push_back(MainCC); - setMainFileID(createFileID(MainCC, SourceLocation(), - OldMainFile.getFile().getFileCharacteristic(), - 0, 0)); - // Ensure all SLocEntries are loaded from the external source. for (unsigned I = 0, N = Old.LoadedSLocEntryTable.size(); I != N; ++I) if (!Old.SLocEntryLoaded[I]) |