[lld] [LLD] [MinGW] Remove an unnecessary include of unistd.h. NFC. (PR #76953)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 05:57:13 PST 2024
https://github.com/mstorsjo created https://github.com/llvm/llvm-project/pull/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.
>From 072000da2b1341c602f864aeb0fad078c8254f48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin at martin.st>
Date: Thu, 4 Jan 2024 15:54:48 +0200
Subject: [PATCH] [LLD] [MinGW] Remove an unnecessary include of unistd.h. NFC.
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.
---
lld/MinGW/Driver.cpp | 4 ----
1 file changed, 4 deletions(-)
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