HomePhabricator

[NewPM] teach -passes= to emit meaningful error messages

Authored by fedor.sergeev on Oct 17 2018, 3:36 AM.

Description

[NewPM] teach -passes= to emit meaningful error messages

All the PassBuilder::parse interfaces now return descriptive StringError
instead of a plain bool. It allows to make -passes/aa-pipeline parsing
errors context-specific and thus less confusing.

TODO: ideally we should also make suggestions for misspelled pass names,
but that requires some extensions to PassBuilder.

Reviewed By: philip.pfaffe, chandlerc
Differential Revision: https://reviews.llvm.org/D53246

llvm-svn: 344685

Details

Committed
fedor.sergeevOct 17 2018, 3:36 AM
Reviewer
philip.pfaffe
Differential Revision
D53246: [NewPM] teach -passes= to emit meaningful error messages
Parents
rG8a0841253353: [MIPS GlobalISel] Legalize constants
Branches
Unknown
Tags
Unknown