#include "TestRunner.h"
#include "ReducerWorkItem.h"
#include "deltas/Utils.h"
#include "llvm/Support/WithColor.h"
usingnamespacellvm;
TestRunner::TestRunner(StringRef TestName,
const std::vector<std::string> &TestArgs,
std::unique_ptr<ReducerWorkItem> Program,
std::unique_ptr<TargetMachine> TM, StringRef ToolName,
StringRef OutputName, bool InputIsBitcode,
bool OutputBitcode)
: … { … }
static constexpr std::array<std::optional<StringRef>, 3> DefaultRedirects = …;
static constexpr std::array<std::optional<StringRef>, 3> NullRedirects;
int TestRunner::run(StringRef Filename) const { … }
void TestRunner::writeOutput(StringRef Message) { … }