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)
commita37c5249121c2969c2e955ab0961c7a5da2a01e7
treee7b8dcd06b28da7368f4ca530222643ed908df26
parent7bef4c48d6cc677446c4e765663431c5132682f3
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Passes.cpp