This is an archive of the discontinued LLVM Phabricator instance.

Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots
ClosedPublic

Authored by aizatsky on Nov 5 2015, 2:01 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

aizatsky updated this revision to Diff 39412.Nov 5 2015, 2:01 PM
aizatsky retitled this revision from to Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots.
aizatsky updated this revision to Diff 39421.Nov 5 2015, 2:41 PM
  • bug fix
aizatsky updated this object.Nov 5 2015, 2:45 PM
aizatsky added a reviewer: kcc.Nov 5 2015, 3:35 PM
aizatsky added a subscriber: llvm-commits.
silvas added a subscriber: silvas.Nov 5 2015, 7:46 PM
silvas added inline comments.
lib/Support/Path.cpp
664 ↗(On Diff #39427)

Why remove this function?

691 ↗(On Diff #39427)

Can you implement the std::string version in terms of the SmallVectorImpl version? In the "small" case the version currently in clang does no heap allocation. It would be a shame to unnecessarily start doing heap allocation for this.

aizatsky updated this revision to Diff 39559.Nov 6 2015, 10:54 AM
aizatsky marked 2 inline comments as done.

review

kcc accepted this revision.Nov 6 2015, 11:23 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 6 2015, 11:23 AM
silvas added a comment.Nov 6 2015, 7:13 PM

LGTM. It's a bit weird returning a SmallString, but inlining should take care of it.

This revision was automatically updated to reflect the committed changes.