forked from OSchip/llvm-project
[NFC][Support] Make Unix/Program.inc separately compilable
To improve CI checks, make `Unix/Program.inc` separately compilable.
This commit is contained in:
parent
7b2eb7a621
commit
0d0dbd6170
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue