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.
Paths
| Differential D153740
[llvm][Support] Deprecate llvm::writeFileAtomically API ClosedPublic Authored by hokein on Jun 26 2023, 12:29 AM.
Details Summary 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 TimelineHerald added projects: Restricted Project, Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptJun 26 2023, 12:29 AM Comment 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
Sounds good. I will split it once https://reviews.llvm.org/D153652 is landed. 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).
This revision is now accepted and ready to land.Jul 3 2023, 2:25 PM This revision was landed with ongoing or failed builds.Jul 6 2023, 3:29 AM Closed by commit rG7aafea001282: [llvm][Support] Deprecate llvm::writeFileAtomically API (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done.
Revision Contents
Diff 534444 clang-tools-extra/clangd/index/BackgroundIndexStorage.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Serialization/GlobalModuleIndex.cpp
lldb/tools/lldb-server/lldb-platform.cpp
llvm/include/llvm/Support/FileUtilities.h
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/lib/Support/FileUtilities.cpp
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/FileUtilitiesTest.cpp
|
the call to llvm::writeToOutput is probably missed here.