1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Allow derived classes of OptimizationRemarkAnalysis in YAML

llvm-svn: 283230
This commit is contained in:
Adam Nemet 2016-10-04 17:05:01 +00:00
parent c9e7a8f58f
commit 3784a5beb7

View File

@ -67,6 +67,14 @@ template <> struct MappingTraits<DiagnosticInfoOptimizationBase *> {
else if (io.mapTag("!Analysis",
OptDiag->getKind() == DK_OptimizationRemarkAnalysis))
;
else if (io.mapTag("!AnalysisFPCommute",
OptDiag->getKind() ==
DK_OptimizationRemarkAnalysisFPCommute))
;
else if (io.mapTag("!AnalysisAliasing",
OptDiag->getKind() ==
DK_OptimizationRemarkAnalysisAliasing))
;
else
llvm_unreachable("todo");