[llvm-branch-commits] [clang] b86e7ae - [clang][driver][NFC][obvious] Remove obsolete unistd.h include

Timm Bäder via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 19 00:33:23 PST 2021


Author: Timm Bäder
Date: 2021-01-19T09:22:40+01:00
New Revision: b86e7ae66cb988dda33445c29fa64f93e7ca9c3c

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

LOG: [clang][driver][NFC][obvious] Remove obsolete unistd.h include

getuid() is not being called in this file anymore.

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/Clang.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 8d6e8c42053f..7ae0de21317d 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/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;


        


More information about the llvm-branch-commits mailing list