Add a higher level createTemporaryFile function.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 5 Jul 2013 19:56:49 +0000 (19:56 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 5 Jul 2013 19:56:49 +0000 (19:56 +0000)
commite11874f6c5e33f5c2d634bfd33e1ae67c93f9b74
treec9879b53b51837fc0a035486e43a703a13915330
parentfe3b2995aa38b25bada9fa2e850590b3988668b5
Add a higher level createTemporaryFile function.

This function is inspired by clang's Driver::GetTemporaryPath. It hides the
pattern used for uniquing and requires simple file names that are always
placed in the system temporary directory.

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