summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-07-12 21:01:44 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-07-12 21:01:44 +0000
commit9de79f7e908fd86b92982111b0a67a70914d5aee (patch)
tree172c29f70d5e8dc3cbbd4ceb18aa2280cf3f03e3
parent97880ae12a3ec2d6c8489ffba9a6b132ad66f77f (diff)
downloadbcm5719-llvm-9de79f7e908fd86b92982111b0a67a70914d5aee.tar.gz
bcm5719-llvm-9de79f7e908fd86b92982111b0a67a70914d5aee.zip
Mention that llvm_report_error() does not return.
llvm-svn: 75428
-rw-r--r--llvm/include/llvm/Support/ErrorHandling.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/ErrorHandling.h b/llvm/include/llvm/Support/ErrorHandling.h
index d9938a1483d..07faba75845 100644
--- a/llvm/include/llvm/Support/ErrorHandling.h
+++ b/llvm/include/llvm/Support/ErrorHandling.h
@@ -42,6 +42,8 @@ namespace llvm {
/// Reports a serious error, calling any installed error handler.
/// If no error handler is installed the default is to print the message to
/// standard error, followed by a newline.
+ /// After the error handler is called this function will call exit(1), it
+ /// does not return.
void llvm_report_error(const std::string &reason) NORETURN;
/// This function calls abort(), and prints the optional message to stderr.
OpenPOWER on IntegriCloud