diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 07:58:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 07:58:10 +0000 |
commit | 82a29b6a02324e65847ed99bae84dafb2755ea32 (patch) | |
tree | 2ee8d4ed76619169df8e0b7b7ea1c1cf0eb095e6 /include/llvm/Support/ErrorHandling.h | |
parent | 23ed52752bb40a9085c9d36bbc6603972c3e0080 (diff) |
Allow llvm_report_error to accept a Twine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ErrorHandling.h')
-rw-r--r-- | include/llvm/Support/ErrorHandling.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h index bdee5b1c24..94541b52f7 100644 --- a/include/llvm/Support/ErrorHandling.h +++ b/include/llvm/Support/ErrorHandling.h @@ -19,6 +19,8 @@ #include <string> namespace llvm { + class Twine; + /// An error handler callback. typedef void (*llvm_error_handler_t)(const std::string& reason); @@ -44,7 +46,9 @@ namespace llvm { /// 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 char *reason) NORETURN; void llvm_report_error(const std::string &reason) NORETURN; + void llvm_report_error(const Twine &reason) NORETURN; /// This function calls abort(), and prints the optional message to stderr. /// Use the llvm_unreachable macro (that adds location info), instead of |