[lld] r318558 - Don't use llvm/Config/config.h.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 13:40:38 PST 2017
Author: rafael
Date: Fri Nov 17 13:40:38 2017
New Revision: 318558
URL: http://llvm.org/viewvc/llvm-project?rev=318558&view=rev
Log:
Don't use llvm/Config/config.h.
It is private to llvm. Instead use llvm/Config/llvm-config.h and check
LLVM_ON_UNIX. That is the same guard that clang uses before including
unistd.h.
Modified:
lld/trunk/ELF/Filesystem.cpp
Modified: lld/trunk/ELF/Filesystem.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Filesystem.cpp?rev=318558&r1=318557&r2=318558&view=diff
==============================================================================
--- lld/trunk/ELF/Filesystem.cpp (original)
+++ lld/trunk/ELF/Filesystem.cpp Fri Nov 17 13:40:38 2017
@@ -14,10 +14,10 @@
#include "Filesystem.h"
#include "Config.h"
#include "lld/Common/Threads.h"
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Support/FileOutputBuffer.h"
#include "llvm/Support/FileSystem.h"
-#if defined(HAVE_UNISTD_H)
+#if LLVM_ON_UNIX
#include <unistd.h>
#endif
#include <thread>
More information about the llvm-commits
mailing list