[cfe-commits] r64033 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Sat Feb 7 13:59:45 PST 2009


Author: kremenek
Date: Sat Feb  7 15:59:45 2009
New Revision: 64033

URL: http://llvm.org/viewvc/llvm-project?rev=64033&view=rev
Log:
Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'.

Modified:
    cfe/trunk/lib/Analysis/CFRefCount.cpp

Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=64033&r1=64032&r2=64033&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Sat Feb  7 15:59:45 2009
@@ -30,7 +30,6 @@
 #include "llvm/Support/Compiler.h"
 #include "llvm/ADT/STLExtras.h"
 #include <ostream>
-#include <sstream>
 #include <stdarg.h>
 
 using namespace clang;
@@ -2479,13 +2478,13 @@
   
   // Generate the diagnostic.
   FullSourceLoc L( S->getLocStart(), SMgr);
-  std::ostringstream os;
+  std::string sbuf;
+  llvm::raw_string_ostream os(sbuf);
   
   os << "Object allocated on line " << AllocLine;
   
   if (FirstBinding)
     os << " and stored into '" << FirstBinding->getString() << '\'';  
-
   
   // Get the retain count.
   const RefVal* RV = EndN->getState()->get<RefBindings>(Sym);





More information about the cfe-commits mailing list