diff options
author | Alan Phipps <a-phipps@ti.com> | 2023-09-20 16:31:49 -0500 |
---|---|---|
committer | Alan Phipps <a-phipps@ti.com> | 2023-09-20 16:32:34 -0500 |
commit | ab3cd075b314995f213b6ca50b6b3b4a14c051bd (patch) | |
tree | 95682c4c1e8a0f41605e5e04b948312b25607872 /llvm/tools/llvm-cov/SourceCoverageViewText.cpp | |
parent | 7f3467412ed52d6749b7c53f7934c4374c6d2a00 (diff) | |
download | llvm-ab3cd075b314995f213b6ca50b6b3b4a14c051bd.zip llvm-ab3cd075b314995f213b6ca50b6b3b4a14c051bd.tar.gz llvm-ab3cd075b314995f213b6ca50b6b3b4a14c051bd.tar.bz2 |
Revert "[Coverage][llvm-cov] Enable MC/DC Support in LLVM Source-based Code Coverage (2/3)"
This reverts commit 618a22144db5e45da8c95dc22064103e1b5e5b71.
Buildbots failing on windows and one other issue.
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageViewText.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp index 73b7ffe..44694a0 100644 --- a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp +++ b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp @@ -337,57 +337,6 @@ void SourceCoverageViewText::renderBranchView(raw_ostream &OS, BranchView &BRV, } } -void SourceCoverageViewText::renderMCDCView(raw_ostream &OS, MCDCView &MRV, - unsigned ViewDepth) { - for (auto &Record : MRV.Records) { - renderLinePrefix(OS, ViewDepth); - OS << "---> MC/DC Decision Region ("; - // Display Line + Column information. - const CounterMappingRegion &DecisionRegion = Record.getDecisionRegion(); - OS << DecisionRegion.LineStart << ":"; - OS << DecisionRegion.ColumnStart << ") to ("; - OS << DecisionRegion.LineEnd << ":"; - OS << DecisionRegion.ColumnEnd << ")\n"; - renderLinePrefix(OS, ViewDepth); - OS << "\n"; - - // Display MC/DC Information. - renderLinePrefix(OS, ViewDepth); - OS << " Number of Conditions: " << Record.getNumConditions() << "\n"; - for (unsigned i = 0; i < Record.getNumConditions(); i++) { - renderLinePrefix(OS, ViewDepth); - OS << " " << Record.getConditionHeaderString(i); - } - renderLinePrefix(OS, ViewDepth); - OS << "\n"; - renderLinePrefix(OS, ViewDepth); - OS << " Executed MC/DC Test Vectors:\n"; - renderLinePrefix(OS, ViewDepth); - OS << "\n"; - renderLinePrefix(OS, ViewDepth); - OS << " "; - OS << Record.getTestVectorHeaderString(); - for (unsigned i = 0; i < Record.getNumTestVectors(); i++) { - renderLinePrefix(OS, ViewDepth); - OS << Record.getTestVectorString(i); - } - renderLinePrefix(OS, ViewDepth); - OS << "\n"; - for (unsigned i = 0; i < Record.getNumConditions(); i++) { - renderLinePrefix(OS, ViewDepth); - OS << Record.getConditionCoverageString(i); - } - renderLinePrefix(OS, ViewDepth); - OS << " MC/DC Coverage for Decision: "; - colored_ostream(OS, raw_ostream::RED, - getOptions().Colors && Record.getPercentCovered() < 100.0, - /*Bold=*/false, /*BG=*/true) - << format("%0.2f", Record.getPercentCovered()) << "%\n"; - renderLinePrefix(OS, ViewDepth); - OS << "\n"; - } -} - void SourceCoverageViewText::renderInstantiationView(raw_ostream &OS, InstantiationView &ISV, unsigned ViewDepth) { |