[PATCH] D94873: [clang] [driver] Remove obsolete unistd.h include
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 16 23:05:24 PST 2021
tbaeder created this revision.
tbaeder added reviewers: rsmith, aaron.ballman, dlj.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This was needed for a call to `getuid()`, but that call is gone these days, so remove the include as well.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94873
Files:
clang/lib/Driver/ToolChains/Clang.cpp
Index: clang/lib/Driver/ToolChains/Clang.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Clang.cpp
+++ clang/lib/Driver/ToolChains/Clang.cpp
@@ -45,10 +45,6 @@
#include "llvm/Support/TargetParser.h"
#include "llvm/Support/YAMLParser.h"
-#ifdef LLVM_ON_UNIX
-#include <unistd.h> // For getuid().
-#endif
-
using namespace clang::driver;
using namespace clang::driver::tools;
using namespace clang;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94873.317210.patch
Type: text/x-patch
Size: 460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210117/f47b990a/attachment.bin>
More information about the cfe-commits
mailing list