This is an archive of the discontinued LLVM Phabricator instance.

Delegate path operations to FileSpec.
ClosedPublic

Authored by chaoren on Jun 4 2015, 1:05 PM.

Details

Summary
  • Added PrependPathComponent utility functions to FileSpec.
  • Delegate path operations in ParseCompileUnit to FileSpec.
  • Delegate path operations in ParseSupportFiles to FileSpec.

Diff Detail

Repository
rL LLVM

Event Timeline

chaoren updated this revision to Diff 27141.Jun 4 2015, 1:05 PM
chaoren retitled this revision from to Delegate path operations in ParseCompileUnit to FileSpec..
chaoren updated this object.
chaoren edited the test plan for this revision. (Show Details)
chaoren added reviewers: ovyalov, clayborg.
chaoren added a subscriber: Unknown Object (MLST).
chaoren retitled this revision from Delegate path operations in ParseCompileUnit to FileSpec. to Delegate path operations in DWARF parsing to FileSpec..Jun 4 2015, 4:01 PM
chaoren updated this revision to Diff 27156.Jun 4 2015, 4:02 PM
  • Added PrependPathComponent utility functions to FileSpec.
  • Delegate path operations in ParseCompileUnit to FileSpec.
  • Delegate path operations in ParseSupportFiles to FileSpec.
ovyalov edited edge metadata.Jun 4 2015, 4:54 PM

Please see my comments.

source/Host/common/FileSpec.cpp
1365 ↗(On Diff #27156)

Could you add a check for !new_path and return if true?

source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp
526 ↗(On Diff #27156)

const FileSpec& ?

source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
984 ↗(On Diff #27156)

s/NULL/nullptr

chaoren updated this revision to Diff 27162.Jun 4 2015, 5:09 PM
chaoren edited edge metadata.
  • Addressed review comments.
ovyalov accepted this revision.Jun 4 2015, 5:21 PM
ovyalov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jun 4 2015, 5:21 PM
chaoren retitled this revision from Delegate path operations in DWARF parsing to FileSpec. to Delegate path operations to FileSpec..Jun 4 2015, 5:31 PM
chaoren updated this object.
chaoren edited edge metadata.
This revision was automatically updated to reflect the committed changes.