[llvm] 0d0dbd6 - [NFC][Support] Make Unix/Program.inc separately compilable
Hubert Tong via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 12:42:39 PDT 2020
Author: Hubert Tong
Date: 2020-06-25T15:41:17-04:00
New Revision: 0d0dbd617064965fff1993403751ac7cbc4bb695
URL: https://github.com/llvm/llvm-project/commit/0d0dbd617064965fff1993403751ac7cbc4bb695
DIFF: https://github.com/llvm/llvm-project/commit/0d0dbd617064965fff1993403751ac7cbc4bb695.diff
LOG: [NFC][Support] Make Unix/Program.inc separately compilable
To improve CI checks, make `Unix/Program.inc` separately compilable.
Added:
Modified:
llvm/lib/Support/Unix/Program.inc
Removed:
################################################################################
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index b113998a9583..8f41fc015163 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -15,6 +15,8 @@
//=== is guaranteed to work on *all* UNIX variants.
//===----------------------------------------------------------------------===//
+#include "llvm/Support/Program.h"
+
#include "Unix.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Config/config.h"
@@ -59,8 +61,7 @@
#endif
#endif
-namespace llvm {
-
+using namespace llvm;
using namespace sys;
ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
@@ -161,8 +162,6 @@ static void SetMemoryLimits(unsigned size) {
#endif
}
-}
-
static std::vector<const char *>
toNullTerminatedCStringArray(ArrayRef<StringRef> Strings, StringSaver &Saver) {
std::vector<const char *> Result;
More information about the llvm-commits
mailing list