This is an archive of the discontinued LLVM Phabricator instance.

LTO: Merge -lto-no-discard-value-names with -save-temps.
ClosedPublic

Authored by ruiu on Apr 22 2016, 2:38 PM.

Details

Summary

This patch is to remove -lto-no-discard-value-names flag and
instead to use -save-temps as we discussed in the post-commit
review thread for r267020.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu updated this revision to Diff 54728.Apr 22 2016, 2:38 PM
ruiu retitled this revision from to LTO: Merge -lto-no-discard-value-names with -save-temps..
ruiu updated this object.
ruiu added reviewers: davide, pcc.
ruiu added a subscriber: llvm-commits.
pcc accepted this revision.Apr 22 2016, 2:41 PM
pcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 22 2016, 2:41 PM

I guess the only issue is that you can't test that the linker is correctly setting up LLVM to discard names now.

ruiu added a comment.Apr 22 2016, 2:44 PM

Right, whether the flag was set correctly or not is not visible from outside, but I think that's not a big issue.

It is only an issue for testability, you can't catch a regression on this aspect now, if someone removes the call to setDiscardValueNames all your tests will still be passing.
I'm just mentioning it, I understand there is a tradeoff for everything :)

This revision was automatically updated to reflect the committed changes.