[PM] Add the IR unit type to the pass manager's logging and make all of
authorChandler Carruth <chandlerc@gmail.com>
Thu, 25 Feb 2016 10:27:39 +0000 (10:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 25 Feb 2016 10:27:39 +0000 (10:27 +0000)
commit395fe57374915198fce7ed25c8afbc8140e29574
tree41b09a7d7778cbd34b10a9d462f81686d45ea1aa
parentb9fd2e00154446ecb838a496cca87944fde130cc
[PM] Add the IR unit type to the pass manager's logging and make all of
the testing more more explicit.

This will currently fail on platforms without support for getTypeName.
While an assert failure seems too harsh, I'm hoping we're OK with the
regression test failure, and I'd like to find out about what platforms
actually exist in this state if there are any so we can get
implementations in place for them.

But if we just can't fix all the host compilers to have a reasonably
portable variant of getTypeName and are worried about xfailing this test
on those platforms, I can add the horrible regular expression magic to
make the tests support "unknown" here as well.

llvm-svn: 261853
llvm/include/llvm/IR/PassManager.h
llvm/test/Other/new-pass-manager.ll
llvm/test/Other/pass-pipeline-parsing.ll