summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2008-09-29 00:25:48 +0000
committerNico Weber <nicolasweber@gmx.de>2008-09-29 00:25:48 +0000
commit378c5539c8e34c4ab21b0d3cb7cae736a9612fdb (patch)
treee74d23705f7736b09497899e70541b5e1b8c1e28 /clang/lib/Basic/SourceManager.cpp
parentb6b1abb0f5b421bd9f25c7081d29ff3329f4177e (diff)
downloadbcm5719-llvm-378c5539c8e34c4ab21b0d3cb7cae736a9612fdb.tar.gz
bcm5719-llvm-378c5539c8e34c4ab21b0d3cb7cae736a9612fdb.zip
whitespace and comment changes, to fix grammar and 80 col violations
llvm-svn: 56776
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index 1a072fccaa0..1eed0bc1432 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/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>());
OpenPOWER on IntegriCloud