| 102 | |
| 103 | #if LLVM_ENABLE_ABI_BREAKING_CHECKS |
| 104 | void Error::fatalUncheckedError() const { |
| 105 | dbgs() << "Program aborted due to an unhandled Error:\n"; |
| 106 | if (getPtr()) { |
| 107 | getPtr()->log(dbgs()); |
| 108 | dbgs() << "\n"; |
| 109 | }else |
| 110 | dbgs() << "Error value was Success. (Note: Success values must still be " |
| 111 | "checked prior to being destroyed).\n"; |
| 112 | abort(); |
| 113 | } |
| 114 | #endif |
| 115 | |
| 116 | StringError::StringError(std::error_code EC, const Twine &S) |