diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-23 12:08:50 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-23 12:08:50 +0000 |
commit | 6cb7c1a43b0c8f739d1f54b7fdae5ede86033496 (patch) | |
tree | 9ea30f4f06493f482faf9fac7f2bed9077b34148 /lib/Basic/SourceManager.cpp | |
parent | 68eaf00dec2de004ca4dceef2664add43d454069 (diff) | |
download | clang-6cb7c1a43b0c8f739d1f54b7fdae5ede86033496.tar.gz |
Replace cerr with errs().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
-rw-r--r-- | lib/Basic/SourceManager.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index 6640c61ff3..88da73f797 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -17,9 +17,7 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/System/Path.h" -#include "llvm/Support/Streams.h" #include <algorithm> -#include <iostream> using namespace clang; using namespace SrcMgr; using llvm::MemoryBuffer; @@ -1062,11 +1060,11 @@ bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, /// PrintStats - Print statistics to stderr. /// void SourceManager::PrintStats() const { - llvm::cerr << "\n*** Source Manager Stats:\n"; - llvm::cerr << FileInfos.size() << " files mapped, " << MemBufferInfos.size() - << " mem buffers mapped.\n"; - llvm::cerr << SLocEntryTable.size() << " SLocEntry's allocated, " - << NextOffset << "B of Sloc address space used.\n"; + llvm::errs() << "\n*** Source Manager Stats:\n"; + llvm::errs() << FileInfos.size() << " files mapped, " << MemBufferInfos.size() + << " mem buffers mapped.\n"; + llvm::errs() << SLocEntryTable.size() << " SLocEntry's allocated, " + << NextOffset << "B of Sloc address space used.\n"; unsigned NumLineNumsComputed = 0; unsigned NumFileBytesMapped = 0; @@ -1075,10 +1073,10 @@ void SourceManager::PrintStats() const { NumFileBytesMapped += I->second->getSizeBytesMapped(); } - llvm::cerr << NumFileBytesMapped << " bytes of files mapped, " - << NumLineNumsComputed << " files with line #'s computed.\n"; - llvm::cerr << "FileID scans: " << NumLinearScans << " linear, " - << NumBinaryProbes << " binary.\n"; + llvm::errs() << NumFileBytesMapped << " bytes of files mapped, " + << NumLineNumsComputed << " files with line #'s computed.\n"; + llvm::errs() << "FileID scans: " << NumLinearScans << " linear, " + << NumBinaryProbes << " binary.\n"; } ExternalSLocEntrySource::~ExternalSLocEntrySource() { } |