aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LegacyPassManager.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-03-02 14:49:46 -0800
committerArthur Eubanks <aeubanks@google.com>2021-03-02 15:59:28 -0800
commit99f1e86cbb34b4a09fa422fe95e8f88f86360eab (patch)
treed8fd5748361333c4f44e5c102b1c404dc97da1b2 /llvm/lib/IR/LegacyPassManager.cpp
parentb24afec8ae58be9fb26b4103e7fccf7580729c8b (diff)
downloadllvm-99f1e86cbb34b4a09fa422fe95e8f88f86360eab.zip
llvm-99f1e86cbb34b4a09fa422fe95e8f88f86360eab.tar.gz
llvm-99f1e86cbb34b4a09fa422fe95e8f88f86360eab.tar.bz2
[opt] Error if -debug-pass is specified alongside the new PM
Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D97810
Diffstat (limited to 'llvm/lib/IR/LegacyPassManager.cpp')
-rw-r--r--llvm/lib/IR/LegacyPassManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/LegacyPassManager.cpp b/llvm/lib/IR/LegacyPassManager.cpp
index 94be208..32840fd 100644
--- a/llvm/lib/IR/LegacyPassManager.cpp
+++ b/llvm/lib/IR/LegacyPassManager.cpp
@@ -242,6 +242,8 @@ void PassManagerPrettyStackEntry::print(raw_ostream &OS) const {
namespace llvm {
namespace legacy {
+bool debugPassSpecified() { return PassDebugging != Disabled; }
+
//===----------------------------------------------------------------------===//
// FunctionPassManagerImpl
//