[PATCH] D39922: Create a TempFile class

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 13:45:32 PST 2017


rafael created this revision.

This just adds a TempFile class and replaces the use in FileOutputBuffer with it.

The only difference for now is better error handling. My idea is to once this is in:

- Convert other user of temporary files to it.
- Add support for automatically deleting on windows.
- Add a createUnnamed method that returns a potentially unnamed file. It would be actually unnamed on modern linux and have a unknown name on windows.


https://reviews.llvm.org/D39922

Files:
  include/llvm/Support/FileSystem.h
  lib/Support/FileOutputBuffer.cpp
  lib/Support/Path.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39922.122518.patch
Type: text/x-patch
Size: 6766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171110/20313735/attachment.bin>


More information about the llvm-commits mailing list