From 0d0dbd617064965fff1993403751ac7cbc4bb695 Mon Sep 17 00:00:00 2001 From: Hubert Tong Date: Thu, 25 Jun 2020 15:41:17 -0400 Subject: [PATCH] [NFC][Support] Make Unix/Program.inc separately compilable To improve CI checks, make `Unix/Program.inc` separately compilable. --- llvm/lib/Support/Unix/Program.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc index b113998a958..8f41fc01516 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 toNullTerminatedCStringArray(ArrayRef Strings, StringSaver &Saver) { std::vector Result; -- 2.11.0