summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Unix.h
diff options
context:
space:
mode:
authorSam McCall <sammccall@google.com>2019-10-23 15:10:35 +0200
committerSam McCall <sammccall@google.com>2019-10-23 15:10:35 +0200
commit7bc7fe6b789d25d48d6dc71d533a411e9e981237 (patch)
tree1b61de736858e27c933931953ff3926ad6747c91 /llvm/lib/Support/Unix/Unix.h
parent40668abca4d307e02b33345cfdb7271549ff48d0 (diff)
downloadbcm5719-llvm-7bc7fe6b789d25d48d6dc71d533a411e9e981237.tar.gz
bcm5719-llvm-7bc7fe6b789d25d48d6dc71d533a411e9e981237.zip
Revert "[Support] Add a way to run a function on a detached thread"
This reverts commit 40668abca4d307e02b33345cfdb7271549ff48d0. This causes clang tests to fail, as stacksize=0 is being explicitly passed and is no longer a no-op.
Diffstat (limited to 'llvm/lib/Support/Unix/Unix.h')
-rw-r--r--llvm/lib/Support/Unix/Unix.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Support/Unix/Unix.h b/llvm/lib/Support/Unix/Unix.h
index 1fc9a414f74..86309b0567f 100644
--- a/llvm/lib/Support/Unix/Unix.h
+++ b/llvm/lib/Support/Unix/Unix.h
@@ -21,7 +21,6 @@
#include "llvm/Config/config.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/Errno.h"
-#include "llvm/Support/ErrorHandling.h"
#include <algorithm>
#include <assert.h>
#include <cerrno>
@@ -70,14 +69,6 @@ static inline bool MakeErrMsg(
return true;
}
-// Include StrError(errnum) in a fatal error message.
-LLVM_ATTRIBUTE_NORETURN static inline void ReportErrnumFatal(const char *Msg,
- int errnum) {
- std::string ErrMsg;
- MakeErrMsg(&ErrMsg, Msg, errnum);
- llvm::report_fatal_error(ErrMsg);
-}
-
namespace llvm {
namespace sys {
OpenPOWER on IntegriCloud