Allow derived classes of OptimizationRemarkAnalysis in YAML
authorAdam Nemet <anemet@apple.com>
Tue, 4 Oct 2016 17:05:01 +0000 (17:05 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 4 Oct 2016 17:05:01 +0000 (17:05 +0000)
llvm-svn: 283230

llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp

index 181e375..bfb1976 100644 (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");