[PM] Push the debug option for the new pass manager into the opt tool
authorChandler Carruth <chandlerc@gmail.com>
Tue, 13 Jan 2015 22:42:38 +0000 (22:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 13 Jan 2015 22:42:38 +0000 (22:42 +0000)
commit3c95d9ccc0a18e5c88ff73ab0803c06155cc612d
tree4a7a422b078345587d20e44bed2da2cf0006a912
parentf38f71d8a0d666be41d1c7c69fffe3fff3bdc023
[PM] Push the debug option for the new pass manager into the opt tool
and expose the necessary hooks in the API directly.

This makes it much cleaner for example to log the usage of a pass
manager from a library. It also makes it more obvious that this
functionality isn't "optional" or "asserts-only" for the pass manager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225841 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PassManager.h
lib/IR/PassManager.cpp
tools/opt/NewPMDriver.cpp
tools/opt/Passes.cpp
tools/opt/Passes.h