mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Tidy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -66,11 +66,10 @@ void llvm::report_fatal_error(const Twine &Reason) {
|
|||||||
// succeeds (e.g. handling EINTR) and we can't use errs() here because
|
// succeeds (e.g. handling EINTR) and we can't use errs() here because
|
||||||
// raw ostreams can call report_fatal_error.
|
// raw ostreams can call report_fatal_error.
|
||||||
SmallVector<char, 64> Buffer;
|
SmallVector<char, 64> Buffer;
|
||||||
StringRef ReasonStr = Reason.toStringRef(Buffer);
|
raw_svector_ostream OS(Buffer);
|
||||||
|
OS << "LLVM ERROR: " << Reason << "\n";
|
||||||
::write(2, "LLVM ERROR: ", 12);
|
StringRef MessageStr = OS.str();
|
||||||
::write(2, ReasonStr.data(), ReasonStr.size());
|
(void)::write(2, MessageStr.data(), MessageStr.size());
|
||||||
::write(2, "\n", 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we reached here, we are failing ungracefully. Run the interrupt handlers
|
// If we reached here, we are failing ungracefully. Run the interrupt handlers
|
||||||
|
Reference in New Issue
Block a user