The new llvm::writeToOutput API does the same thing, and we're in favor
of it.
This patch migrates 4 exiting usages and removes the llvm::writeFileAtomically API.
Differential D153740
[llvm][Support] Deprecate llvm::writeFileAtomically API hokein on Jun 26 2023, 12:29 AM. Authored by
Details The new llvm::writeToOutput API does the same thing, and we're in favor This patch migrates 4 exiting usages and removes the llvm::writeFileAtomically API.
Diff Detail
Event TimelineComment Actions Let me know what you think about it -- I considered keeping the llvm::writeFileAtomically and migrating its underlying implementation to llvm::writeToOutput, but it doesn't seem to worth, there are only 4 in-tree usages of this API, I think it is probably better just remove it. Comment Actions added @jkorous who originally added llvm::writeFileAtomically.
I think it is OK to leave only one API (f.e. llvm::writeToOutput) and remove another. It would probably be better to split this patch to lldb, thinlto, clang and removal parts.
Comment Actions Now this patch only contains the removal part of the API (I have cleaned all usages of writeFileAtomically API, except a remaining one in lldb https://reviews.llvm.org/D154329).
|