This is an archive of the discontinued LLVM Phabricator instance.

Add vfs::FileSystem::getRealPath
ClosedPublic

Authored by ioeric on May 16 2018, 6:52 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.May 16 2018, 6:52 AM
ioeric retitled this revision from Make sure getCanonicalName returns absolute paths even on VFS. to Add vfs::FileSystem::getRealPath.May 16 2018, 1:23 PM
ioeric edited the summary of this revision. (Show Details)
ioeric updated this revision to Diff 147167.May 16 2018, 1:24 PM
  • Add vfs::FileSystem::getRealPath; change getCanonicalName to use getRealPath
bkramer accepted this revision.May 17 2018, 2:45 AM

Looks good. Please watch the windows buildbots carefully after landing this.

lib/Basic/FileManager.cpp
537 ↗(On Diff #147167)

PATH_MAX is not a standard thing and probably not there on windows. I'd just hardcode it to 256.

This revision is now accepted and ready to land.May 17 2018, 2:45 AM
ioeric updated this revision to Diff 147278.May 17 2018, 3:05 AM
ioeric marked an inline comment as done.
  • s/PATH_MAX/4096/
lib/Basic/FileManager.cpp
537 ↗(On Diff #147167)

PATH_MAX on unit is 4096. Let's go with 4096.

This revision was automatically updated to reflect the committed changes.