Move the code in TargetPassConfig::addPass that inserts machine printer pass to
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 5 Jun 2015 21:58:14 +0000 (21:58 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 5 Jun 2015 21:58:14 +0000 (21:58 +0000)
commitc100c56a20de2b4851f5a7192240f2917a10caad
treebe3a79f8b283bcb41abb097e5c33531e270e63c7
parenta81e88141ecce1898768bef16d6e59576bedf2a2
Move the code in TargetPassConfig::addPass that inserts machine printer pass to
the overloaded version of addPass which takes Pass*.

This change enables inserting the machine printer pass when the overloaded
version of addPass that takes Pass* is called to add a pass, instead of the
one which takes AnalysisID. I need this to prevent make-check tests from
failing when I commit another patch later.

llvm-svn: 239192
llvm/lib/CodeGen/Passes.cpp