]> granicus.if.org Git - llvm/commit
[PM] Switch the CGSCC debug messages to use the standard LLVM debug
authorChandler Carruth <chandlerc@gmail.com>
Fri, 11 Aug 2017 05:47:13 +0000 (05:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 11 Aug 2017 05:47:13 +0000 (05:47 +0000)
commit83bfb55f3b81271a683ad090724080e4bdbd1858
tree408b9b43a2bf815f2e07c522ce6c083b0b37882d
parent9306f4af13e81a04b7434058d27cbbc4e0cca3cd
[PM] Switch the CGSCC debug messages to use the standard LLVM debug
printing techniques with a DEBUG_TYPE controlling them.

It was a mistake to start re-purposing the pass manager `DebugLogging`
variable for generic debug printing -- those logs are intended to be
very minimal and primarily used for testing. More detailed and
comprehensive logging doesn't make sense there (it would only make for
brittle tests).

Moreover, we kept forgetting to propagate the `DebugLogging` variable to
various places making it also ineffective and/or unavailable. Switching
to `DEBUG_TYPE` makes this a non-issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310695 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/CGSCCPassManager.h
lib/Analysis/CGSCCPassManager.cpp
lib/Passes/PassBuilder.cpp
test/Other/new-pass-manager.ll
unittests/Analysis/CGSCCPassManagerTest.cpp