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)
commit325fa0fd93952946848f1ea33cf3dc8a6de6774a
treec89a00b228802086ee03f3c54b501a6dca100ae7
parent5603df45df0c7fb2c2fd7771c080e04bd98f6eca
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.

llvm-svn: 185716
llvm/include/llvm/Support/FileSystem.h
llvm/lib/Support/Path.cpp