Use std::thread directly.
Now that this code is posix only we don't need to use runBackground.
llvm-svn: 317632
diff --git a/lld/ELF/Filesystem.cpp b/lld/ELF/Filesystem.cpp
index 5678f22..ae4519a 100644
--- a/lld/ELF/Filesystem.cpp
+++ b/lld/ELF/Filesystem.cpp
@@ -20,6 +20,7 @@
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
+#include <thread>
using namespace llvm;
@@ -61,7 +62,7 @@
sys::fs::remove(Path);
// close and therefore remove TempPath in background.
- runBackground([=] { ::close(FD); });
+ std::thread([=] { ::close(FD); }).detach();
#endif
}