summaryrefslogtreecommitdiff
path: root/tools/opt/Passes.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-11 11:52:05 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-11 11:52:05 +0000
commitb56749c3b7bd3867d5a500b9882decd957244620 (patch)
treee20a9070e3aa16ad2092503b4f51f7f5bdc48857 /tools/opt/Passes.cpp
parentd55b5fe9920554cebf5976316915bb07165734b4 (diff)
downloadllvm-b56749c3b7bd3867d5a500b9882decd957244620.tar.gz
llvm-b56749c3b7bd3867d5a500b9882decd957244620.tar.bz2
llvm-b56749c3b7bd3867d5a500b9882decd957244620.tar.xz
[PM] Add names to passes under the new pass manager, and a debug output
mode that can be used to debug the execution of everything. No support for analyses here, that will come later. This already helps show parts of the opt commandline integration that isn't working. Tests of that will start using it as the bugs are fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/Passes.cpp')
-rw-r--r--tools/opt/Passes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/Passes.cpp b/tools/opt/Passes.cpp
index 49751269df..d58acaf1f6 100644
--- a/tools/opt/Passes.cpp
+++ b/tools/opt/Passes.cpp
@@ -24,6 +24,7 @@ namespace {
/// \brief No-op module pass which does nothing.
struct NoOpModulePass {
PreservedAnalyses run(Module *M) { return PreservedAnalyses::all(); }
+ static StringRef name() { return "NoOpModulePass"; }
};
} // End anonymous namespace.