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:
parent
c9e7a8f58f
commit
3784a5beb7
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user