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/SourceCoverageView.h | |
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/SourceCoverageView.h')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageView.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h index 2e3fa8e..c07595f 100644 --- a/llvm/tools/llvm-cov/SourceCoverageView.h +++ b/llvm/tools/llvm-cov/SourceCoverageView.h @@ -84,23 +84,6 @@ struct BranchView { } }; -/// A view that represents one or more MCDC regions on a given source line. -struct MCDCView { - std::vector<MCDCRecord> Records; - std::unique_ptr<SourceCoverageView> View; - unsigned Line; - - MCDCView(unsigned Line, ArrayRef<MCDCRecord> Records, - std::unique_ptr<SourceCoverageView> View) - : Records(Records), View(std::move(View)), Line(Line) {} - - unsigned getLine() const { return Line; } - - friend bool operator<(const MCDCView &LHS, const MCDCView &RHS) { - return LHS.Line < RHS.Line; - } -}; - /// A file manager that handles format-aware file creation. class CoveragePrinter { public: @@ -177,9 +160,6 @@ class SourceCoverageView { /// A container for all branches in the source on display. std::vector<BranchView> BranchSubViews; - /// A container for all MCDC records in the source on display. - std::vector<MCDCView> MCDCSubViews; - /// A container for all instantiations (e.g template functions) in the source /// on display. std::vector<InstantiationView> InstantiationSubViews; @@ -253,10 +233,6 @@ protected: virtual void renderBranchView(raw_ostream &OS, BranchView &BRV, unsigned ViewDepth) = 0; - /// Render an MCDC view. - virtual void renderMCDCView(raw_ostream &OS, MCDCView &BRV, - unsigned ViewDepth) = 0; - /// Render \p Title, a project title if one is available, and the /// created time. virtual void renderTitle(raw_ostream &OS, StringRef CellText) = 0; @@ -307,10 +283,6 @@ public: void addBranch(unsigned Line, ArrayRef<CountedRegion> Regions, std::unique_ptr<SourceCoverageView> View); - /// Add an MCDC subview to this view. - void addMCDCRecord(unsigned Line, ArrayRef<MCDCRecord> Records, - std::unique_ptr<SourceCoverageView> View); - /// Print the code coverage information for a specific portion of a /// source file to the output stream. void print(raw_ostream &OS, bool WholeFile, bool ShowSourceName, |