1 //===- LLVMDriver.h ---------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_SUPPORT_LLVMDRIVER_H
10 #define LLVM_SUPPORT_LLVMDRIVER_H
11 
12 namespace llvm {
13 
14 struct ToolContext {
15   const char *Path;
16   const char *PrependArg;
17   // PrependArg will be added unconditionally by the llvm-driver, but
18   // NeedsPrependArg will be false if Path is adequate to reinvoke the tool.
19   // This is useful if realpath is ever called on Path, in which case it will
20   // point to the llvm-driver executable, where PrependArg will be needed to
21   // invoke the correct tool.
22   bool NeedsPrependArg;
23 };
24 
25 } // namespace llvm
26 
27 #endif
28