From 40762fec7335c336951da165e5e383710b5abee9 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 26 Nov 2009 14:35:28 +0000 Subject: [PATCH] issue a friendlier error if someone tries to send precompiled header to '-' (stdout) this brings the error on clang -c foo.h -o - closer to clang -c foo.h -o /dev/null llvm-svn: 89948 --- clang/lib/Frontend/FrontendActions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 3a2f570a7a5c..653cf8734bac 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -222,7 +222,7 @@ void GeneratePTHAction::ExecuteAction() { CI.getFrontendOpts().OutputFile == "-") { // FIXME: Don't fail this way. // FIXME: Verify that we can actually seek in the given file. - llvm::errs() << "ERROR: PTH requires an seekable file for output!\n"; + llvm::llvm_report_error("PTH requires an seekable file for output!"); ::exit(1); } llvm::raw_fd_ostream *OS =