]> granicus.if.org Git - clang/commit
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)
commit00350578c0fcb52394e5694b1dad208077b829e1
tree11767f1860ec5bce6492c5b2156ea906df7ad857
parent42285719e50afc8bfe887b41980533ce82bef9ca
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212585 91177308-0d34-0410-b5e6-96231b3b80d8
examples/clang-interpreter/main.cpp