[cfe-commits] r58054 - /cfe/trunk/lib/AST/InheritViz.cpp
Ted Kremenek
kremenek at apple.com
Thu Oct 23 16:55:41 PDT 2008
Author: kremenek
Date: Thu Oct 23 18:55:40 2008
New Revision: 58054
URL: http://llvm.org/viewvc/llvm-project?rev=58054&view=rev
Log:
Use llvm::errs() instead of cerr.
Modified:
cfe/trunk/lib/AST/InheritViz.cpp
Modified: cfe/trunk/lib/AST/InheritViz.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/InheritViz.cpp?rev=58054&r1=58053&r2=58054&view=diff
==============================================================================
--- cfe/trunk/lib/AST/InheritViz.cpp (original)
+++ cfe/trunk/lib/AST/InheritViz.cpp Thu Oct 23 18:55:40 2008
@@ -137,30 +137,30 @@
/// class using GraphViz.
void QualType::viewInheritance(ASTContext& Context) {
if (!(*this)->getAsRecordType()) {
- cerr << "Type " << getAsString() << " is not a C++ class type.\n";
+ llvm::errs() << "Type " << getAsString() << " is not a C++ class type.\n";
return;
}
#ifndef NDEBUG
std::string ErrMsg;
sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg);
if (Filename.isEmpty()) {
- cerr << "Error: " << ErrMsg << "\n";
+ llvm::errs() << "Error: " << ErrMsg << "\n";
return;
}
Filename.appendComponent(getAsString() + ".dot");
if (Filename.makeUnique(true,&ErrMsg)) {
- cerr << "Error: " << ErrMsg << "\n";
+ llvm::errs() << "Error: " << ErrMsg << "\n";
return;
}
- cerr << "Writing '" << Filename << "'... ";
+ llvm::errs() << "Writing '" << Filename.c_str() << "'... ";
llvm::raw_fd_ostream O(Filename.c_str(), ErrMsg);
if (ErrMsg.empty()) {
InheritanceHierarchyWriter Writer(Context, O);
Writer.WriteGraph(*this);
- cerr << " done. \n";
+ llvm::errs() << " done. \n";
O.close();
More information about the cfe-commits
mailing list