Be nice if Xcode would tell me what it's dead-code stripping

Originator:dpolasch
Number:rdar://20227110 Date Originated:19 Mar 2015
Status:Analyze Resolved:Unresolved
Product:Xcode Product Version:6.2
Classification:Enhancement Reproducible:Always
 
* SUMMARY
Be nice if Xcode would tell me what it's dead-code stripping

* STEPS TO REPRODUCE
1. Open a project which has code which is dead-stripped by the linker
2. Build

* RESULTS
Note that there is no indication of what code has been dead-stripped by the linker.

* REGRESSION
In older versions of the tools (MPW) I could generate a link-map of the application code, and another link-map of the application code with dead-code stripping enabled in the linker, and with some sorting and comparing and such, generate a list of symbols that had been dead-code stripped by the linker.

* NOTES
Ideally this would be at least as simple as clang's current "unused function" detection, which has helped me strip thousands of LOC already in 2015. But I've managed to strip tens of thousands of LOC by knowing that I'll (probably) never need to build a PPC version of Photoshop again, so while clang has been helpful, there's more it could be doing.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!