[lld] [LLD] [MinGW] Remove an unnecessary include of unistd.h. NFC. (PR #76953)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 05:57:28 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Martin Storsjö (mstorsjo)

<details>
<summary>Changes</summary>

This was present since when the MinGW LLD frontend first was merged in 894dbbe8eb0e3d8fc7d8746a76d2380f0c2b6c0f, where it most probably was a leftover from earlier evolution of the patch.

---
Full diff: https://github.com/llvm/llvm-project/pull/76953.diff


1 Files Affected:

- (modified) lld/MinGW/Driver.cpp (-4) 


``````````diff
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp
index 94f0ae7993e62e..5ba1bf0e4b4e82 100644
--- a/lld/MinGW/Driver.cpp
+++ b/lld/MinGW/Driver.cpp
@@ -46,10 +46,6 @@
 #include "llvm/TargetParser/Triple.h"
 #include <optional>
 
-#if !defined(_MSC_VER) && !defined(__MINGW32__)
-#include <unistd.h>
-#endif
-
 using namespace lld;
 using namespace llvm::opt;
 using namespace llvm;

``````````

</details>


https://github.com/llvm/llvm-project/pull/76953


More information about the llvm-commits mailing list