diff options
Diffstat (limited to 'lib/Checker/TextPathDiagnostics.cpp')
-rw-r--r-- | lib/Checker/TextPathDiagnostics.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Checker/TextPathDiagnostics.cpp b/lib/Checker/TextPathDiagnostics.cpp index 03c6088027..83ff7a4409 100644 --- a/lib/Checker/TextPathDiagnostics.cpp +++ b/lib/Checker/TextPathDiagnostics.cpp @@ -20,7 +20,7 @@ using namespace llvm; namespace { -/// \brief Simple path diagnostic client used for outputting as text +/// \brief Simple path diagnostic client used for outputting as diagnostic notes /// the sequence of events. class TextPathDiagnostics : public PathDiagnosticClient { const std::string OutputFile; @@ -61,14 +61,6 @@ void TextPathDiagnostics::HandlePathDiagnostic(const PathDiagnostic* D) { return; } - // Open the file. - std::string ErrMsg; - llvm::raw_fd_ostream o(OutputFile.c_str(), ErrMsg); - if (!ErrMsg.empty()) { - llvm::errs() << "warning: could not create file: " << OutputFile << '\n'; - return; - } - for (PathDiagnostic::const_iterator I=D->begin(), E=D->end(); I != E; ++I) { if (isa<PathDiagnosticEventPiece>(*I)) { PathDiagnosticEventPiece &event = cast<PathDiagnosticEventPiece>(*I); |