diff options
author | Ben Barham <ben_barham@apple.com> | 2022-03-11 14:31:21 -0800 |
---|---|---|
committer | Ben Barham <ben_barham@apple.com> | 2022-03-14 11:44:07 -0700 |
commit | cc63ae42d77200ed85dd0d57f1d5c5800a67683c (patch) | |
tree | 00275835071be49a550f919cba0942687824910f /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 9286786e873369b3e39b98e92dfc6781958d86b6 (diff) | |
download | llvm-cc63ae42d77200ed85dd0d57f1d5c5800a67683c.zip llvm-cc63ae42d77200ed85dd0d57f1d5c5800a67683c.tar.gz llvm-cc63ae42d77200ed85dd0d57f1d5c5800a67683c.tar.bz2 |
[VFS] Rename `RedirectingFileSystem::dump` to `print`
The rest of LLVM uses `print` for the method taking the `raw_ostream`
and `dump` only for the method with no parameters. Use the same for
`RedirectingFileSystem`.
Differential Revision: https://reviews.llvm.org/D121494
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index 590bc1902f..1ca18e4 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -1381,14 +1381,14 @@ std::vector<StringRef> RedirectingFileSystem::getRoots() const { return R; } -void RedirectingFileSystem::dump(raw_ostream &OS) const { +void RedirectingFileSystem::print(raw_ostream &OS) const { for (const auto &Root : Roots) - dumpEntry(OS, Root.get()); + printEntry(OS, Root.get()); } -void RedirectingFileSystem::dumpEntry(raw_ostream &OS, - RedirectingFileSystem::Entry *E, - int NumSpaces) const { +void RedirectingFileSystem::printEntry(raw_ostream &OS, + RedirectingFileSystem::Entry *E, + int NumSpaces) const { StringRef Name = E->getName(); for (int i = 0, e = NumSpaces; i < e; ++i) OS << " "; @@ -1401,12 +1401,12 @@ void RedirectingFileSystem::dumpEntry(raw_ostream &OS, for (std::unique_ptr<Entry> &SubEntry : llvm::make_range(DE->contents_begin(), DE->contents_end())) - dumpEntry(OS, SubEntry.get(), NumSpaces + 2); + printEntry(OS, SubEntry.get(), NumSpaces + 2); } } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -LLVM_DUMP_METHOD void RedirectingFileSystem::dump() const { dump(dbgs()); } +void RedirectingFileSystem::dump() const { print(dbgs()); } #endif /// A helper class to hold the common YAML parsing state. |