[PATCH] D24176: Remove temoprary files.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 17:45:24 PDT 2016
ruiu created this revision.
ruiu added a reviewer: rnk.
ruiu added a subscriber: llvm-commits.
Previously, we created temporary files using llvm::sys::fs::createTemporaryFile
and remove them using llvm::FileRemover. This is error-prone as it is easy to
forget creating FileRemover instances after creating temporary files.
There is actually a temporary file leak bug.
This patch introduces a new class, TemporaryFile, to manage temporary files
in the RTTI style.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4890 bytes
Desc: not available
More information about the llvm-commits