simple optimization: don't bother calling "exists" (which calls the syscall
authorChris Lattner <sabre@nondot.org>
Tue, 18 Jul 2006 07:07:51 +0000 (07:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Jul 2006 07:07:51 +0000 (07:07 +0000)
commitff3d80ff7e167a8b6e84621ed155481c8b6a2bb4
tree11a5330ac007b6470759122a724054415d93c5d5
parent84bad2f96c42e62238bb29f6344eadd7006826b2
simple optimization: don't bother calling "exists" (which calls the syscall
"access").  Instead, just let the open call fail if the file doesn't exist.
This reduces the # syscalls executed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29173 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/Unix/MappedFile.inc