9#ifndef LLVM_SUPPORT_DRIVER_H
10#define LLVM_SUPPORT_DRIVER_H
32 explicit operator bool()
const {
return static_cast<bool>(
Main); }
72 bool InstallPipeSignalExitHandler =
true,
73 bool NeedsPOSIXUtilitySignalHandling =
false);
86 std::unique_ptr<Impl> PImpl;
Provides ErrorOr<T> smart pointer.
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Represents either an error or a value T.
Represent a constant reference to a string, i.e.
Describes how a tool was invoked and provides access to its host session.
LLVM_ABI ErrorOr< int > callTool(ArrayRef< const char * > Args) const
Invokes another tool registered with the same host session.
ToolContext(const char *Path, const char *PrependArg, bool NeedsPrependArg)
LLVM_ABI ErrorOr< CallableTool > getCallableTool(StringRef Name) const
Finds a tool registered with the session that owns this context.
This is an optimization pass for GlobalISel generic memory operations.
std::function< int(int, char **, const ToolContext &)> ToolMainFn