[cfe-commits] r109441 - in /cfe/trunk: include/clang/Frontend/DocumentXML.h lib/AST/TypePrinter.cpp lib/Frontend/DependencyFile.cpp
Dan Gohman
gohman at apple.com
Mon Jul 26 14:29:50 PDT 2010
Author: djg
Date: Mon Jul 26 16:29:50 2010
New Revision: 109441
URL: http://llvm.org/viewvc/llvm-project?rev=109441&view=rev
Log:
It's not necessary to call flush() on a raw_ostream immediately prior
to deleting it.
Modified:
cfe/trunk/include/clang/Frontend/DocumentXML.h
cfe/trunk/lib/AST/TypePrinter.cpp
cfe/trunk/lib/Frontend/DependencyFile.cpp
Modified: cfe/trunk/include/clang/Frontend/DocumentXML.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/DocumentXML.h?rev=109441&r1=109440&r2=109441&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/DocumentXML.h (original)
+++ cfe/trunk/include/clang/Frontend/DocumentXML.h Mon Jul 26 16:29:50 2010
@@ -150,7 +150,6 @@
{
llvm::raw_string_ostream buf(repr);
buf << value;
- buf.flush();
}
Out << ' ' << pName << "=\""
Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=109441&r1=109440&r2=109441&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Mon Jul 26 16:29:50 2010
@@ -463,7 +463,6 @@
}
OS << '>';
- OS.flush();
}
// If this is a class template specialization, print the template
Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/DependencyFile.cpp?rev=109441&r1=109440&r2=109441&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/DependencyFile.cpp (original)
+++ cfe/trunk/lib/Frontend/DependencyFile.cpp Mon Jul 26 16:29:50 2010
@@ -53,7 +53,6 @@
virtual void EndOfMainFile() {
OutputDependencyFile();
- OS->flush();
delete OS;
OS = 0;
}
More information about the cfe-commits
mailing list