forked from OSchip/llvm-project
[AnnotationRemarks] Also generate annotation remarks when using -O0.
The AnnotationRemarks pass is already run at the end of the module pipeline. This patch also adds it before bailing out for -O0, so remarks are also generated with -O0.
This commit is contained in:
parent
697226550e
commit
7ea3932ab1
|
@ -569,6 +569,8 @@ void PassManagerBuilder::populateModulePassManager(
|
|||
// new unnamed globals.
|
||||
MPM.add(createNameAnonGlobalPass());
|
||||
}
|
||||
|
||||
MPM.add(createAnnotationRemarksLegacyPass());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
; CHECK-NEXT: Inliner for always_inline functions
|
||||
; A No-Op Barrier Pass
|
||||
; CHECK: FunctionPass Manager
|
||||
; CHECK-NEXT: Annotation Remarks
|
||||
; CHECK-NEXT: Module Verifier
|
||||
; CHECK-NEXT: Bitcode Writer
|
||||
|
||||
|
|
Loading…
Reference in New Issue