This is an archive of the discontinued LLVM Phabricator instance.

Allow multiple debug types in --debug-only
ClosedPublic

Authored by christof on Dec 18 2015, 8:43 AM.

Details

Summary

The --debug-only option now takes a comma separated list of debug types. This means that the DEBUG_TYPE cannot take a comma anymore. All existing passes conform to this rule.

Diff Detail

Repository
rL LLVM

Event Timeline

christof updated this revision to Diff 43234.Dec 18 2015, 8:43 AM
christof retitled this revision from to Allow multiple debug types in --debug-only.
christof updated this object.
christof set the repository for this revision to rL LLVM.
christof updated this object.
christof added a subscriber: llvm-commits.
MatzeB edited edge metadata.Dec 21 2015, 2:08 PM

Note that you can already pass -debug-only multiple times to enable output for multiple debug types. Though I guess the variant with commas may be easier to discover.

Note that you can already pass -debug-only multiple times to enable output for multiple debug types. Though I guess the variant with commas may be easier to discover.

Yes, I know. I did not change that behaviour. But while debugging the compiler, I found it much easier to add and remove ,pass then to add --debug-only=pass. It is even worse when your input is a C source. That requires the extra -mllvm argument to clang. For that reason I wrote this small patch.

Would this be accepted?

MatzeB accepted this revision.Jan 11 2016, 11:30 AM
MatzeB edited edge metadata.

Shouldn't hurt and improve usability for developers. LGTM.

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