diff options
author | Nico Weber <nicolasweber@gmx.de> | 2008-09-29 00:25:48 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2008-09-29 00:25:48 +0000 |
commit | 48002c89578eaeb008a0bb5a10d8216e61906459 (patch) | |
tree | 46247e5cecfe33757403d762bed6118a4893e52b /lib/Basic/SourceManager.cpp | |
parent | aa5caa17ed34df5e1147d7b2ff447441c906f3da (diff) |
whitespace and comment changes, to fix grammar and 80 col violations
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
-rw-r--r-- | lib/Basic/SourceManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index 1a072fccaa..1eed0bc143 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -71,7 +71,7 @@ SourceManager::createMemBufferContentCache(const MemoryBuffer *Buffer) { } -/// createFileID - Create a new fileID for the specified ContentCache and +/// createFileID - Create a new fileID for the specified ContentCache and /// include position. This works regardless of whether the ContentCache /// corresponds to a file or some other input source. unsigned SourceManager::createFileID(const ContentCache *File, @@ -399,14 +399,14 @@ void ContentCache::ReadToSourceManager(llvm::Deserializer& D, // is absolutely needed. if (!E) D.RegisterPtr(PtrID,NULL); - else + else // Get the ContextCache object and register it with the deserializer. D.RegisterPtr(PtrID,SMgr.getContentCache(E)); } else { // Register the ContextCache object with the deserializer. SMgr.MemBufferInfos.push_back(ContentCache()); - ContentCache& Entry = const_cast<ContentCache&>(SMgr.MemBufferInfos.back()); + ContentCache& Entry = const_cast<ContentCache&>(SMgr.MemBufferInfos.back()); D.RegisterPtr(&Entry); // Create the buffer. @@ -467,7 +467,7 @@ void SourceManager::Emit(llvm::Serializer& S) const { S.ExitBlock(); - // Emit: FileIDs + // Emit: FileIDs S.EmitInt(FileIDs.size()); std::for_each(FileIDs.begin(), FileIDs.end(), S.MakeEmitter<FileIDInfo>()); |