summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita13f27cc3405c71e8e8b702e8f3ce19a2fa73cb5 (patch)
tree4d9263ce13f5b6fca798eebfd9d637c178bbd3e8 /llvm/tools/opt/Passes.cpp
parentd7693d8444982118af05f6f8971ecb2908215b30 (diff)
downloadbcm5719-llvm-a13f27cc3405c71e8e8b702e8f3ce19a2fa73cb5.tar.gz
bcm5719-llvm-a13f27cc3405c71e8e8b702e8f3ce19a2fa73cb5.zip
[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. llvm-svn: 199004
Diffstat (limited to 'llvm/tools/opt/Passes.cpp')
-rw-r--r--llvm/tools/opt/Passes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt/Passes.cpp b/llvm/tools/opt/Passes.cpp
index 49751269df9..d58acaf1f6d 100644
--- a/llvm/tools/opt/Passes.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud