[PATCH] D25224: Don't filter diagnostics written as YAML to the output file
Hal Finkel via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 4 11:22:48 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283236: Don't filter diagnostics written as YAML to the output file (authored by hfinkel).
Changed prior to commit:
https://reviews.llvm.org/D25224?vs=73399&id=73511#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25224
Files:
llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp
llvm/trunk/test/Transforms/Inline/optimization-remarks-yaml.ll
Index: llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp
===================================================================
--- llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp
+++ llvm/trunk/lib/Analysis/OptimizationDiagnosticInfo.cpp
@@ -134,7 +134,7 @@
computeHotness(OptDiag);
yaml::Output *Out = F->getContext().getDiagnosticsOutputFile();
- if (Out && OptDiag.isEnabled()) {
+ if (Out) {
auto *P = &const_cast<DiagnosticInfoOptimizationBase &>(OptDiag);
*Out << P;
}
Index: llvm/trunk/test/Transforms/Inline/optimization-remarks-yaml.ll
===================================================================
--- llvm/trunk/test/Transforms/Inline/optimization-remarks-yaml.ll
+++ llvm/trunk/test/Transforms/Inline/optimization-remarks-yaml.ll
@@ -1,6 +1,8 @@
; RUN: opt < %s -S -inline -pass-remarks-missed=inline -pass-remarks-with-hotness \
; RUN: -pass-remarks-output=%t 2>&1 | FileCheck %s
; RUN: cat %t | FileCheck -check-prefix=YAML %s
+; RUN: opt < %s -S -inline -pass-remarks-with-hotness -pass-remarks-output=%t
+; RUN: cat %t | FileCheck -check-prefix=YAML %s
; Check the YAML file generated for inliner remarks for this program:
;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25224.73511.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161004/2297d1ef/attachment.bin>
More information about the llvm-commits
mailing list