mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-23 07:52:06 +00:00
8fca5084fa
Original-commit: flang-compiler/f18@237979b3a8
22 lines
433 B
C++
22 lines
433 B
C++
#include "idioms.h"
|
|
#include <cstdarg>
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
|
|
namespace Fortran {
|
|
|
|
void die(const char *msg, ...) {
|
|
va_list ap;
|
|
va_start(ap, msg);
|
|
std::fputs("\nfatal internal error: ", stderr);
|
|
std::vfprintf(stderr, msg, ap);
|
|
va_end(ap);
|
|
fputc('\n', stderr);
|
|
std::abort();
|
|
}
|
|
|
|
std::ostream &operator<<(std::ostream &o, const std::monostate &) {
|
|
return o << "(empty variant)";
|
|
}
|
|
} // namespace Fortran
|