summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreTargetObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-13 16:58:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-13 16:58:19 +0000
commite08aac49ea25f904699bb6411c4063a619e64c0d (patch)
treed4ec5a62307670317d9ecdad0f707363c5fcb104 /lib/Target/XCore/XCoreTargetObjectFile.cpp
parent5645e5fd141f8693d1d6372cdce0dee94732ba95 (diff)
downloadllvm-e08aac49ea25f904699bb6411c4063a619e64c0d.tar.gz
llvm-e08aac49ea25f904699bb6411c4063a619e64c0d.tar.bz2
llvm-e08aac49ea25f904699bb6411c4063a619e64c0d.tar.xz
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
Diffstat (limited to 'lib/Target/XCore/XCoreTargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions