]> granicus.if.org Git - clang/commit
Remove and forbid raw_svector_ostream::flush() calls.
authorYaron Keren <yaron.keren@gmail.com>
Thu, 13 Aug 2015 18:12:56 +0000 (18:12 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Thu, 13 Aug 2015 18:12:56 +0000 (18:12 +0000)
commitf49d6b849111267a2f0559b098f49061018ec6c4
treebd7dc23138cfd1a08bdd411b71b270f927a59fff
parentff6225cf8858225c0fdc59931c07d81a96a55dd6
Remove and forbid raw_svector_ostream::flush() calls.
After r244870 flush() will only compare two null pointers and return,
doing nothing but wasting run time. The call is not required any more
as the stream and its SmallString are always in sync.

Thanks to David Blaikie for reviewing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244928 91177308-0d34-0410-b5e6-96231b3b80d8
22 files changed:
lib/ARCMigrate/ARCMT.cpp
lib/ARCMigrate/ObjCMT.cpp
lib/AST/ASTDiagnostic.cpp
lib/AST/Expr.cpp
lib/AST/ItaniumMangle.cpp
lib/AST/Mangle.cpp
lib/AST/MicrosoftMangle.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGVTT.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenTBAA.cpp
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
lib/CodeGen/ObjectFilePCHContainerOperations.cpp
lib/Index/CommentToXML.cpp
lib/Index/USRGeneration.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExceptionSpec.cpp
lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
tools/libclang/CIndex.cpp