[cfe-commits] r44635 - /cfe/trunk/Basic/SourceManager.cpp
Ted Kremenek
kremenek at apple.com
Wed Dec 5 14:21:13 PST 2007
Author: kremenek
Date: Wed Dec 5 16:21:13 2007
New Revision: 44635
URL: http://llvm.org/viewvc/llvm-project?rev=44635&view=rev
Log:
Removed dependence on including iostream (use llvm/Support/Streams.h instead).
Modified:
cfe/trunk/Basic/SourceManager.cpp
Modified: cfe/trunk/Basic/SourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/SourceManager.cpp?rev=44635&r1=44634&r2=44635&view=diff
==============================================================================
--- cfe/trunk/Basic/SourceManager.cpp (original)
+++ cfe/trunk/Basic/SourceManager.cpp Wed Dec 5 16:21:13 2007
@@ -19,8 +19,8 @@
#include "llvm/System/Path.h"
#include "llvm/Bitcode/Serialize.h"
#include "llvm/Bitcode/Deserialize.h"
+#include "llvm/Support/Streams.h"
#include <algorithm>
-#include <iostream>
#include <fcntl.h>
using namespace clang;
using namespace SrcMgr;
@@ -388,12 +388,12 @@
/// PrintStats - Print statistics to stderr.
///
void SourceManager::PrintStats() const {
- std::cerr << "\n*** Source Manager Stats:\n";
- std::cerr << FileInfos.size() << " files mapped, " << MemBufferInfos.size()
- << " mem buffers mapped, " << FileIDs.size()
- << " file ID's allocated.\n";
- std::cerr << " " << FileIDs.size() << " normal buffer FileID's, "
- << MacroIDs.size() << " macro expansion FileID's.\n";
+ llvm::cerr << "\n*** Source Manager Stats:\n";
+ llvm::cerr << FileInfos.size() << " files mapped, " << MemBufferInfos.size()
+ << " mem buffers mapped, " << FileIDs.size()
+ << " file ID's allocated.\n";
+ llvm::cerr << " " << FileIDs.size() << " normal buffer FileID's, "
+ << MacroIDs.size() << " macro expansion FileID's.\n";
unsigned NumLineNumsComputed = 0;
unsigned NumFileBytesMapped = 0;
@@ -403,8 +403,8 @@
NumFileBytesMapped += I->Buffer->getBufferSize();
}
- std::cerr << NumFileBytesMapped << " bytes of files mapped, "
- << NumLineNumsComputed << " files with line #'s computed.\n";
+ llvm::cerr << NumFileBytesMapped << " bytes of files mapped, "
+ << NumLineNumsComputed << " files with line #'s computed.\n";
}
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list