This is an archive of the discontinued LLVM Phabricator instance.

Make FileSpec use StringRef.
ClosedPublic

Authored by zturner on Sep 26 2016, 1:43 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

zturner updated this revision to Diff 72555.Sep 26 2016, 1:43 PM
zturner retitled this revision from to Make FileSpec use StringRef..
zturner updated this object.
zturner added a reviewer: clayborg.
zturner added a subscriber: lldb-commits.
clayborg accepted this revision.Sep 26 2016, 2:07 PM
clayborg edited edge metadata.

Watch the buildbots for failures, but this looks fine. We aren't changing how the strings for filename and directory are stored, just using StringRef to deliver the arguments.

This revision is now accepted and ready to land.Sep 26 2016, 2:07 PM
amccarth added inline comments.
source/Host/common/FileSpec.cpp
1317 ↗(On Diff #72555)

Function is misspelled. Should be GetPreferredPathSeparator (1 'f', 2 'r's), throughout this file.

Fortunately, it's file-static, so it's easy to fix in this patch.

This revision was automatically updated to reflect the committed changes.