diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-26 22:08:39 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-26 22:08:39 +0000 |
commit | 779e5f487daaf1c96cbd22a145e988742395f8d4 (patch) | |
tree | 40963d376312f863b14115f0caa935f7a02bea46 | |
parent | 52f08bcbb81c750ed62b53ed0b34aff16143b877 (diff) |
Remove unnecessary calls to 'flush()'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85162 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/CIndex/CIndex.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index 64dfcfea51..09ee1351ba 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -380,10 +380,8 @@ CXTranslationUnit clang_createTranslationUnit( CXXIdx->getOnlyLocalDecls(), /* UseBumpAllocator = */ true); - if (!ErrMsg.empty()) { - (llvm::errs() << "clang_createTranslationUnit: " << ErrMsg - << '\n').flush(); - } + if (!ErrMsg.empty()) + llvm::errs() << "clang_createTranslationUnit: " << ErrMsg << '\n'; return TU; } @@ -448,10 +446,11 @@ CXTranslationUnit clang_createTranslationUnitFromSourceFile( llvm::errs() << "clang_createTranslationUnitFromSourceFile: " << ErrMsg << '\n' << "Arguments: \n"; for (std::vector<const char*>::iterator I = argv.begin(), E = argv.end(); - I!=E; ++I) - if (*I) llvm::errs() << ' ' << *I << '\n'; - - (llvm::errs() << '\n').flush(); + I!=E; ++I) { + if (*I) + llvm::errs() << ' ' << *I << '\n'; + } + llvm::errs() << '\n'; } #else // FIXME: I don't know what is the equivalent '/dev/null' redirect for |