14#include "llvm/Config/config.h"
39#if defined(HAVE_STRERROR_R) || HAVE_DECL_STRERROR_S
40 const int MaxErrStrLen = 2000;
41 char buffer[MaxErrStrLen];
47#if defined(__GLIBC__) && defined(_GNU_SOURCE)
50 str = strerror_r(errnum, buffer, MaxErrStrLen - 1);
52 strerror_r(errnum, buffer, MaxErrStrLen - 1);
55#elif HAVE_DECL_STRERROR_S
56 strerror_s(buffer, MaxErrStrLen - 1, errnum);
62 str = strerror(errnum);
std::string StrError()
Returns a string representation of the errno value, using whatever thread-safe variant of strerror() ...
This is an optimization pass for GlobalISel generic memory operations.