mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[NFC][Support] Make Unix/Program.inc separately compilable
To improve CI checks, make `Unix/Program.inc` separately compilable.
This commit is contained in:
parent
c5e34acb2b
commit
df736abacd
@ -15,6 +15,8 @@
|
|||||||
//=== is guaranteed to work on *all* UNIX variants.
|
//=== is guaranteed to work on *all* UNIX variants.
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#include "llvm/Support/Program.h"
|
||||||
|
|
||||||
#include "Unix.h"
|
#include "Unix.h"
|
||||||
#include "llvm/ADT/StringExtras.h"
|
#include "llvm/ADT/StringExtras.h"
|
||||||
#include "llvm/Config/config.h"
|
#include "llvm/Config/config.h"
|
||||||
@ -59,8 +61,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace llvm {
|
using namespace llvm;
|
||||||
|
|
||||||
using namespace sys;
|
using namespace sys;
|
||||||
|
|
||||||
ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
|
ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
|
||||||
@ -161,8 +162,6 @@ static void SetMemoryLimits(unsigned size) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static std::vector<const char *>
|
static std::vector<const char *>
|
||||||
toNullTerminatedCStringArray(ArrayRef<StringRef> Strings, StringSaver &Saver) {
|
toNullTerminatedCStringArray(ArrayRef<StringRef> Strings, StringSaver &Saver) {
|
||||||
std::vector<const char *> Result;
|
std::vector<const char *> Result;
|
||||||
|
Loading…
Reference in New Issue
Block a user