]> granicus.if.org Git - clang/commitdiff
It's not necessary to call flush() on a raw_ostream immediately prior
authorDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 21:29:50 +0000 (21:29 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 21:29:50 +0000 (21:29 +0000)
to deleting it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109441 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/DocumentXML.h
lib/AST/TypePrinter.cpp
lib/Frontend/DependencyFile.cpp

index 73d892105f211e5567ab82b0af7dc3aaef68559d..602d84655828bc495650d2e40bf66d5a74cf16a3 100644 (file)
@@ -150,7 +150,6 @@ inline void DocumentXML::addAttribute(const char* pName, const T& value) {
   {
     llvm::raw_string_ostream buf(repr);
     buf << value;
-    buf.flush();
   }
   
   Out << ' ' << pName << "=\"" 
index a08ee1ae695d09134bb65c25ab435355cee57c93..463e9099e45973ee8e6cde177f1c4f6851f05bf4 100644 (file)
@@ -463,7 +463,6 @@ void TypePrinter::PrintTag(TagDecl *D, std::string &InnerString) {
     }
     
     OS << '>';
-    OS.flush();
   }
 
   // If this is a class template specialization, print the template
index 14aee3559c9e4e025258056b202c86af1aa3a5bd..cdff8077ee4787c464dbe263f178b255dc0a740d 100644 (file)
@@ -53,7 +53,6 @@ public:
 
   virtual void EndOfMainFile() {
     OutputDependencyFile();
-    OS->flush();
     delete OS;
     OS = 0;
   }