summaryrefslogtreecommitdiffstats
path: root/clang/examples
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-09 01:37:36 +0000
committerAlp Toker <alp@nuanti.com>2014-07-09 01:37:36 +0000
commited412dac652c1bbe5f28706ef0f31e0c5d379a27 (patch)
treeeb4dc3953a94a5292e63c22e33bb92927d7ec7c7 /clang/examples
parent4ea0d2389be998469758d929f651c29095d98641 (diff)
downloadbcm5719-llvm-ed412dac652c1bbe5f28706ef0f31e0c5d379a27.tar.gz
bcm5719-llvm-ed412dac652c1bbe5f28706ef0f31e0c5d379a27.zip
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
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/clang-interpreter/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp
index fb9d298f0ac..8b8ccfdf70a 100644
--- a/clang/examples/clang-interpreter/main.cpp
+++ b/clang/examples/clang-interpreter/main.cpp
@@ -77,6 +77,7 @@ int main(int argc, const char **argv, char * const *envp) {
DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
Driver TheDriver(Path, llvm::sys::getProcessTriple(), Diags);
TheDriver.setTitle("clang interpreter");
+ TheDriver.setCheckInputsExist(false);
// FIXME: This is a hack to try to force the driver to do something we can
// recognize. We need to extend the driver library to support this use model
OpenPOWER on IntegriCloud