]> granicus.if.org Git - llvm/commit
Don't bring in llvm/Support/thread.h in Threading.cpp
authorZachary Turner <zturner@google.com>
Fri, 3 Mar 2017 17:39:24 +0000 (17:39 +0000)
committerZachary Turner <zturner@google.com>
Fri, 3 Mar 2017 17:39:24 +0000 (17:39 +0000)
commitc4f71f223f24a67e6e98cf86dccc6ac3dedeb547
treeb4a55c3d3cdb1d34933b750e512ea7a33c907ec8
parent154b43a9b7c6be8911bf98ca5f65ed62210d2d24
Don't bring in llvm/Support/thread.h in Threading.cpp

Doing so defines the type llvm::thread.  On FreeBSD, we need
to call a macro which references its own ::thread type, which
causes an ambiguity due to ADL when inside of the llvm namespace.

Since we don't even need this unless LLVM_ENABLE_THREADS == 1,
we don't even need this type anyway, as it is always equal to
std::thread, so we can just use that directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296891 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Threading.cpp