Skip to content

Commit ed412da

Browse files
committed
clang-interpreter: don't check input file existence, we're in-process
This flag is set by most other tools and avoids extra stat() calls. The frontend will diagnose anyway as it performs the check atomically while opening files at point of use. We could probably make Driver::CheckInputsExist default to false and only enable it in the main 'clang' binary, or even better only perform the checks if we know the tool is external but that needs more thought. llvm-svn: 212585
1 parent 4ea0d23 commit ed412da

File tree

1 file changed

+1
-0
lines changed
  • clang/examples/clang-interpreter

1 file changed

+1
-0
lines changed

clang/examples/clang-interpreter/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ int main(int argc, const char **argv, char * const *envp) {
7777
DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
7878
Driver TheDriver(Path, llvm::sys::getProcessTriple(), Diags);
7979
TheDriver.setTitle("clang interpreter");
80+
TheDriver.setCheckInputsExist(false);
8081

8182
// FIXME: This is a hack to try to force the driver to do something we can
8283
// recognize. We need to extend the driver library to support this use model

0 commit comments

Comments
 (0)