summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ErrorHandling.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120298
* report_fatal_error: Simplify a possible ambiguity.Daniel Dunbar2010-11-131-0/+4
| | | | llvm-svn: 118972
* Some versions of gcc still warn about "ignoring return value ... declaredDuncan Sands2010-09-161-1/+2
| | | | | | with attribute warn_unused_result" here - suppress the warning harder. llvm-svn: 114072
* Tidy.Dan Gohman2010-08-181-5/+4
| | | | llvm-svn: 111432
* include config.h to get config params, hopefully unbreaking mingw builder.Chris Lattner2010-08-171-0/+1
| | | | llvm-svn: 111325
* report_fatal_error can't use errs(), because errs() can call Chris Lattner2010-08-171-8/+26
| | | | | | | into report_fatal_error. Just blast the string to stderr with write(2) and hope for the best! Part of rdar://8318441 llvm-svn: 111320
* Run interrupt routines as part of report_fatal_error, since we are failingDaniel Dunbar2010-05-081-0/+7
| | | | | | ungracefully. llvm-svn: 103334
* rename llvm_install_error_handler -> install_fatal_error_handlerChris Lattner2010-04-071-16/+13
| | | | | | and friends. llvm-svn: 100717
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-071-5/+5
| | | | llvm-svn: 100709
* Fix minor style issues.Dan Gohman2010-03-241-3/+2
| | | | llvm-svn: 99414
* Change errs() to dbgs().David Greene2010-01-051-4/+5
| | | | llvm-svn: 92637
* Add a comment explaining why llvm_unreachable_internal doesn't callDan Gohman2009-08-201-0/+3
| | | | | | the ErrorHandler callback. llvm-svn: 79541
* This void is implicit in C++.Dan Gohman2009-08-121-1/+1
| | | | llvm-svn: 78848
* Add support for a user supplied pointer argument to llvm_install_error_handler.Daniel Dunbar2009-08-101-2/+6
| | | | llvm-svn: 78553
* Allow llvm_report_error to accept a Twine.Daniel Dunbar2009-07-241-3/+12
| | | | llvm-svn: 76961
* llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin2009-07-141-1/+1
| | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
* After converting assert(0) to LLVM_UNREACHABLE we lost file/line location.Torok Edwin2009-07-141-1/+5
| | | | | | | Fix by making the LLVM_UNREACHABLE pass __FILE__ and __LINE__ to llvm_unreachable. llvm-svn: 75631
* assert(0) -> LLVM_UNREACHABLE.Torok Edwin2009-07-111-1/+3
| | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
* Fix braces.Torok Edwin2009-07-071-4/+2
| | | | llvm-svn: 74923
* Introduce new error handling API.Torok Edwin2009-07-071-0/+53
This will replace exit()/abort() style error handling with an API that allows clients to register custom error handling hooks. The default is to call exit(1) when no error handler is provided. llvm-svn: 74922
OpenPOWER on IntegriCloud