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

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 13:18:57 PST 2024


Author: Martin Storsjö
Date: 2024-01-04T23:18:53+02:00
New Revision: 6af713ae170c34f0561f19e594266ce2a2af343b

URL: https://github.com/llvm/llvm-project/commit/6af713ae170c34f0561f19e594266ce2a2af343b
DIFF: https://github.com/llvm/llvm-project/commit/6af713ae170c34f0561f19e594266ce2a2af343b.diff

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

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.

Added: 
    

Modified: 
    lld/MinGW/Driver.cpp

Removed: 
    


################################################################################
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;


        


More information about the llvm-commits mailing list