Files
revng-revng/include/revng/Support/ProgramRunner.h
Alessandro Di Federico da7701bd4e Move all executables except revng to libexec/revng
We used to collect all binaries into the `bin/` directory. However this
led to confusions since certain commands where available both as
`revng-command` and `revng command`.

This commit moves all the executables except `revng` into
`libexec/revng`, which, according to FHS, is dedicated to "internal
binaries that are not intended to be executed directly by users or shell
scripts".
2022-03-17 14:10:50 +01:00

26 lines
488 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include <string>
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
class ProgramRunner {
private:
llvm::SmallVector<std::string, 64> Paths;
public:
ProgramRunner();
/// returns the exit code of the program.
[[nodiscard]] int
run(llvm::StringRef ProgramName, llvm::ArrayRef<std::string> Args);
};
extern ProgramRunner Runner;