+ // Blast the result out to stderr. We don't try hard to make sure this
+ // succeeds (e.g. handling EINTR) and we can't use errs() here because
+ // raw ostreams can call report_fatal_error.
+ SmallVector<char, 64> Buffer;
+ StringRef ReasonStr = Reason.toStringRef(Buffer);
+
+ ::write(2, "LLVM ERROR: ", 12);
+ ::write(2, ReasonStr.data(), ReasonStr.size());
+ ::write(2, "\n", 1);