clang-interpreter: don't check input file existence, we're in-process
authorAlp Toker <alp@nuanti.com>
Wed, 9 Jul 2014 01:37:36 +0000 (01:37 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 9 Jul 2014 01:37:36 +0000 (01:37 +0000)
commited412dac652c1bbe5f28706ef0f31e0c5d379a27
treeeb4dc3953a94a5292e63c22e33bb92927d7ec7c7
parent4ea0d2389be998469758d929f651c29095d98641
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
clang/examples/clang-interpreter/main.cpp