Rafael Espindola e08aac49ea Use mkdir instead of stat+mkdir.
This is an optimistic version of create_diretories: it tries to create the
directory first and looks at the parent only if that fails.

Running strace on "mkdir -p" shows that it is pessimistic, calling mkdir on
every element of the path. We could implement that if needed.

In any case, with both strategies there is no reason to call stat, just check
the return of mkdir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201347 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-13 16:58:19 +00:00
..
2014-02-13 05:11:35 +00:00
2014-02-04 20:04:46 +00:00
2014-02-13 16:58:19 +00:00
2014-01-31 23:46:14 +00:00
2014-01-31 23:46:14 +00:00
2014-01-31 23:46:14 +00:00