LLVM API Documentation
#include "llvm/Support/ToolRunner.h"
#include "llvm/Config/config.h"
#include "llvm/System/Program.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileUtilities.h"
#include <fstream>
#include <sstream>
#include <iostream>
Include dependency graph for ToolRunner.cpp:
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "toolrunner" |
Functions | |
static int | RunProgramWithTimeout (const sys::Path &ProgramPath, const char **Args, const sys::Path &StdInFile, const sys::Path &StdOutFile, const sys::Path &StdErrFile, unsigned NumSeconds=0) |
static void | ProcessFailure (sys::Path ProgPath, const char **Args) |
Variables | |
std::string | LLIPath |
std::vector< std::string > | ToolArgs |
std::string | LLIPath |
std::vector< std::string > | ToolArgs |
#define DEBUG_TYPE "toolrunner" |
Definition at line 14 of file ToolRunner.cpp.
static void ProcessFailure | ( | sys::Path | ProgPath, | |
const char ** | Args | |||
) | [static] |
Definition at line 47 of file ToolRunner.cpp.
References llvm::sys::Path::c_str(), llvm::sys::Path::eraseFromDisk(), llvm::sys::Path::makeUnique(), OS, and RunProgramWithTimeout().
Referenced by llvm::GCC::ExecuteProgram(), llvm::GCC::MakeSharedObject(), llvm::LLC::OutputAsm(), and llvm::CBE::OutputC().
static int RunProgramWithTimeout | ( | const sys::Path & | ProgramPath, | |
const char ** | Args, | |||
const sys::Path & | StdInFile, | |||
const sys::Path & | StdOutFile, | |||
const sys::Path & | StdErrFile, | |||
unsigned | NumSeconds = 0 | |||
) | [static] |
RunProgramWithTimeout - This function provides an alternate interface to the sys::Program::ExecuteAndWait interface.
Definition at line 30 of file ToolRunner.cpp.
References llvm::sys::Program::ExecuteAndWait().
Referenced by llvm::GCC::ExecuteProgram(), llvm::GCC::MakeSharedObject(), llvm::LLC::OutputAsm(), llvm::CBE::OutputC(), and ProcessFailure().
std::string LLIPath |
Definition at line 224 of file ToolRunner.cpp.
std::string LLIPath |
Definition at line 78 of file ToolRunner.cpp.
Referenced by llvm::AbstractInterpreter::createJIT(), and llvm::AbstractInterpreter::createLLI().
std::vector<std::string> ToolArgs |
Definition at line 225 of file ToolRunner.cpp.
std::vector<std::string> ToolArgs |
Definition at line 79 of file ToolRunner.cpp.