This is an archive of the discontinued LLVM Phabricator instance.

[VFS] Rename `RedirectingFileSystem::dump` to `print`
ClosedPublic

Authored by bnbarham on Mar 11 2022, 2:32 PM.

Details

Summary

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.

Diff Detail

Event Timeline

bnbarham created this revision.Mar 11 2022, 2:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2022, 2:32 PM
bnbarham requested review of this revision.Mar 11 2022, 2:32 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 11 2022, 2:32 PM

@dexonsmith it'll be faster to run the tests here than locally, so I figured I'd put the review up anyway.

dexonsmith accepted this revision.Mar 11 2022, 3:25 PM

I think you didn't upload the full patch, so I think the bots will fail, but once the bots are happy this LGTM (besides one nit inline).

llvm/include/llvm/Support/VirtualFileSystem.h
913

Since you didn't update callers I think you missed git add .../VFS.cpp.

913–916

Please leave this print(dbgs()) in the source file to avoid needing to include a header that provides dbgs(). Even if it's currently available there's no reason to depend on that being the case.

Maybe you forgot to git add .../VFS.cpp, since as-is this would give a duplicate definition due to conflicts with the .cpp implementation.

This revision is now accepted and ready to land.Mar 11 2022, 3:25 PM
bnbarham updated this revision to Diff 414763.Mar 11 2022, 3:35 PM

Added VFS.cpp, removed implementation from header

bnbarham marked 2 inline comments as done.Mar 11 2022, 3:38 PM
bnbarham updated this revision to Diff 414770.Mar 11 2022, 4:34 PM

Removed LLVM_DUMP_METHOD from .cpp

This revision was landed with ongoing or failed builds.Mar 14 2022, 11:44 AM
This revision was automatically updated to reflect the committed changes.