summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-11-07 23:09:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-11-07 23:09:54 +0000
commitc78890640e294b1872e1ea04c4e48d874d305990 (patch)
tree735ee0cb4904bb2c0be1588ac39e0cd8bc3b447e
parent1501a26b3907a12c284a5859da723e94d23e2e8b (diff)
downloadbcm5719-llvm-c78890640e294b1872e1ea04c4e48d874d305990.tar.gz
bcm5719-llvm-c78890640e294b1872e1ea04c4e48d874d305990.zip
Use std::thread directly.
Now that this code is posix only we don't need to use runBackground. llvm-svn: 317632
-rw-r--r--lld/ELF/Filesystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/Filesystem.cpp b/lld/ELF/Filesystem.cpp
index 5678f22b9ff..ae4519a0adc 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 @@ void elf::unlinkAsync(StringRef Path) {
sys::fs::remove(Path);
// close and therefore remove TempPath in background.
- runBackground([=] { ::close(FD); });
+ std::thread([=] { ::close(FD); }).detach();
#endif
}
OpenPOWER on IntegriCloud