File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 14
14
#include " llvm/ADT/StringRef.h"
15
15
#include " llvm/Support/Error.h"
16
16
#include " llvm/Support/FileSystem.h"
17
- #include " llvm/Support/FileUtilities.h"
18
17
#include " llvm/Support/MemoryBuffer.h"
19
18
#include " llvm/Support/Path.h"
19
+ #include " llvm/Support/raw_ostream.h"
20
20
#include < functional>
21
21
#include < optional>
22
22
@@ -67,11 +67,10 @@ class DiskBackedIndexStorage : public BackgroundIndexStorage {
67
67
llvm::Error storeShard (llvm::StringRef ShardIdentifier,
68
68
IndexFileOut Shard) const override {
69
69
auto ShardPath = getShardPathFromFilePath (DiskShardRoot, ShardIdentifier);
70
- return llvm::writeFileAtomically (ShardPath + " .tmp.%%%%%%%%" , ShardPath,
71
- [&Shard](llvm::raw_ostream &OS) {
72
- OS << Shard;
73
- return llvm::Error::success ();
74
- });
70
+ return llvm::writeToOutput (ShardPath, [&Shard](llvm::raw_ostream &OS) {
71
+ OS << Shard;
72
+ return llvm::Error::success ();
73
+ });
75
74
}
76
75
};
77
76
You can’t perform that action at this time.
0 commit comments