This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Use semicolon to separate path prefix replacement
ClosedPublic

Authored by rnk on May 17 2016, 9:42 AM.

Details

Summary

Colons can appear in Windows paths after drive letters. Both colon and
semicolon are valid characters in filenames, but neither are very
common. Semicolon seems just as good, and makes the test pass on
Windows.

Diff Detail

Repository
rL LLVM

Event Timeline

rnk updated this revision to Diff 57492.May 17 2016, 9:42 AM
rnk retitled this revision from to [ThinLTO] Use semicolon to separate path prefix replacement.
rnk updated this object.
rnk added a reviewer: tejohnson.
rnk added a subscriber: llvm-commits.
tejohnson edited edge metadata.May 17 2016, 9:52 AM

Thanks, Reid! Noted a couple of other places that need fix. Also test/tools/gold/X86/thinlto_prefix_replace.ll needs the same option change.

tools/gold/gold-plugin.cpp
1223 ↗(On Diff #57492)

The above 2 lines need changing as well.

tools/llvm-lto/llvm-lto.cpp
111 ↗(On Diff #57492)

Description needs update.

rnk updated this revision to Diff 57500.May 17 2016, 10:46 AM
rnk edited edge metadata.
  • Really replace colon with semicolon
tejohnson accepted this revision.May 17 2016, 11:22 AM
tejohnson edited edge metadata.

Thanks again!

This revision is now accepted and ready to land.May 17 2016, 11:22 AM
This revision was automatically updated to reflect the committed changes.