aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2023-06-21 14:13:05 -0700
committerArthur Eubanks <aeubanks@google.com>2023-06-22 08:51:29 -0700
commitda7f212f4a7ac8d99c9368770b9af3b628fd4e9f (patch)
tree87be3f2c08ab25fe1fd50bbd0c05adc155e170a1 /llvm/lib/LTO/LTOBackend.cpp
parent3ea8f2526541884e03d5bd4f4e46f4eb190990b6 (diff)
downloadllvm-da7f212f4a7ac8d99c9368770b9af3b628fd4e9f.zip
llvm-da7f212f4a7ac8d99c9368770b9af3b628fd4e9f.tar.gz
llvm-da7f212f4a7ac8d99c9368770b9af3b628fd4e9f.tar.bz2
[clang][LTO] Add flag to run verifier after every pass
Helps with debugging issues caught by the verifier. Plumbed through both normal clang compile and ThinLTO. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D153468
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 667ebb0..4d90779 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -259,7 +259,8 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
ModuleAnalysisManager MAM;
PassInstrumentationCallbacks PIC;
- StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager);
+ StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager,
+ Conf.VerifyEach);
SI.registerCallbacks(PIC, &MAM);
PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC);