aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorWael Yehia <wyehia@ca.ibm.com>2021-09-20 14:59:26 +0000
committerWael Yehia <wyehia@ca.ibm.com>2021-09-29 12:17:53 +0000
commita60405cf035dc114e7ee090139bed2577f4ea7ef (patch)
tree623aa098f7fcda58925f60331b802f6190b0e883 /llvm/lib/LTO/LTO.cpp
parent722e705f72dd3077a1f51dc62717828e7ccf23e8 (diff)
downloadllvm-a60405cf035dc114e7ee090139bed2577f4ea7ef.zip
llvm-a60405cf035dc114e7ee090139bed2577f4ea7ef.tar.gz
llvm-a60405cf035dc114e7ee090139bed2577f4ea7ef.tar.bz2
[LTO][Legacy] Add -debug-pass-manager option to enable pass run/skip trace.
Reviewed by: steven_wu, fhahn, tejohnson Differential Revision: https://reviews.llvm.org/D110075
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 111fdc8..841ed4d 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -73,6 +73,12 @@ cl::opt<bool> EnableLTOInternalization(
"enable-lto-internalization", cl::init(true), cl::Hidden,
cl::desc("Enable global value internalization in LTO"));
+namespace llvm {
+cl::opt<bool>
+ DebugPassManager("debug-pass-manager", cl::init(false), cl::Hidden,
+ cl::desc("Print pass management debugging information"));
+}
+
// Computes a unique hash for the Module considering the current list of
// export/import and other global analysis results.
// The hash is produced in \p Key.