Add a convenience createUniqueDirectory function.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Jun 2013 03:45:31 +0000 (03:45 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Jun 2013 03:45:31 +0000 (03:45 +0000)
commit08ddd12e444880b4d570ac42a42414a227022190
treed47e948fb007aea27ccdfd68c38dd88a2df19026
parente2b9912a7877d0c73e0c5863ae2ea668edca1de4
Add a convenience createUniqueDirectory function.

There are a few valid situation where we care about the structure inside a
directory, but not about the directory itself. A simple example is for unit
testing directory traversal.

PathV1 had a function like this, add one to V2 and port existing users of the
created temp file and delete it hack to using it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185059 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
lib/Support/Path.cpp
unittests/Support/FileOutputBufferTest.cpp
unittests/Support/Path.cpp