[llvm] r331487 - Fix include of config.h that was incorrectly changed in r331184

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu May 3 14:59:13 PDT 2018


Author: bogner
Date: Thu May  3 14:59:13 2018
New Revision: 331487

URL: http://llvm.org/viewvc/llvm-project?rev=331487&view=rev
Log:
Fix include of config.h that was incorrectly changed in r331184

The RWMutex implementation depends on config.h macros (specifically
HAVE_PTHREAD_H and HAVE_PTHREAD_RWLOCK_INIT), so we need to be
including it and not just llvm-config.h here or we fall back to a much
slower implementation.

Modified:
    llvm/trunk/lib/Support/RWMutex.cpp

Modified: llvm/trunk/lib/Support/RWMutex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/RWMutex.cpp?rev=331487&r1=331486&r2=331487&view=diff
==============================================================================
--- llvm/trunk/lib/Support/RWMutex.cpp (original)
+++ llvm/trunk/lib/Support/RWMutex.cpp Thu May  3 14:59:13 2018
@@ -13,7 +13,7 @@
 
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/RWMutex.h"
-#include "llvm/Config/llvm-config.h"
+#include "llvm/Config/config.h"
 
 //===----------------------------------------------------------------------===//
 //=== WARNING: Implementation here must contain only TRULY operating system




More information about the llvm-commits mailing list