|
LLVM 24.0.0git
|
Describes how a tool was invoked and provides access to its host session. More...
#include "llvm/Support/Driver.h"
Public Member Functions | |
| 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. | |
| LLVM_ABI ErrorOr< int > | callTool (ArrayRef< const char * > Args) const |
| Invokes another tool registered with the same host session. | |
Public Attributes | |
| const char * | Path |
| const char * | PrependArg |
| bool | NeedsPrependArg |
Friends | |
| class | ToolSession |
Describes how a tool was invoked and provides access to its host session.
|
inline |
Definition at line 51 of file Driver.h.
References NeedsPrependArg, Path, and PrependArg.
Invokes another tool registered with the same host session.
Definition at line 130 of file Driver.cpp.
References llvm::make_error_code().
| ErrorOr< CallableTool > ToolContext::getCallableTool | ( | StringRef | Name | ) | const |
Finds a tool registered with the session that owns this context.
Definition at line 124 of file Driver.cpp.
References llvm::make_error_code().
|
friend |
| bool llvm::ToolContext::NeedsPrependArg |
Definition at line 49 of file Driver.h.
Referenced by ToolContext().
Definition at line 42 of file Driver.h.
Referenced by ToolContext().
Definition at line 43 of file Driver.h.
Referenced by ToolContext().