[cfe-commits] r89948 - /cfe/trunk/lib/Frontend/FrontendActions.cpp
Gabor Greif
ggreif at gmail.com
Thu Nov 26 06:35:29 PST 2009
Author: ggreif
Date: Thu Nov 26 08:35:28 2009
New Revision: 89948
URL: http://llvm.org/viewvc/llvm-project?rev=89948&view=rev
Log:
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
Modified:
cfe/trunk/lib/Frontend/FrontendActions.cpp
Modified: cfe/trunk/lib/Frontend/FrontendActions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/FrontendActions.cpp?rev=89948&r1=89947&r2=89948&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/FrontendActions.cpp (original)
+++ cfe/trunk/lib/Frontend/FrontendActions.cpp Thu Nov 26 08:35:28 2009
@@ -222,7 +222,7 @@
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 =
More information about the cfe-commits
mailing list