@@ -69,13 +69,13 @@ struct InstantiationView {
6969
7070// / A view that represents one or more branch regions on a given source line.
7171struct BranchView {
72- std::vector <CountedRegion> Regions;
72+ SmallVector <CountedRegion, 0 > Regions;
7373 std::unique_ptr<SourceCoverageView> View;
7474 unsigned Line;
7575
76- BranchView (unsigned Line, ArrayRef <CountedRegion> Regions,
76+ BranchView (unsigned Line, SmallVector <CountedRegion, 0 > Regions,
7777 std::unique_ptr<SourceCoverageView> View)
78- : Regions(Regions), View(std::move(View)), Line(Line) {}
78+ : Regions(std::move( Regions) ), View(std::move(View)), Line(Line) {}
7979
8080 unsigned getLine () const { return Line; }
8181
@@ -86,13 +86,13 @@ struct BranchView {
8686
8787// / A view that represents one or more MCDC regions on a given source line.
8888struct MCDCView {
89- std::vector <MCDCRecord> Records;
89+ SmallVector <MCDCRecord, 0 > Records;
9090 std::unique_ptr<SourceCoverageView> View;
9191 unsigned Line;
9292
93- MCDCView (unsigned Line, ArrayRef <MCDCRecord> Records,
93+ MCDCView (unsigned Line, SmallVector <MCDCRecord, 0 > Records,
9494 std::unique_ptr<SourceCoverageView> View)
95- : Records(Records), View(std::move(View)), Line(Line) {}
95+ : Records(std::move( Records) ), View(std::move(View)), Line(Line) {}
9696
9797 unsigned getLine () const { return Line; }
9898
@@ -175,10 +175,10 @@ class SourceCoverageView {
175175 std::vector<ExpansionView> ExpansionSubViews;
176176
177177 // / A container for all branches in the source on display.
178- std::vector <BranchView> BranchSubViews;
178+ SmallVector <BranchView, 0 > BranchSubViews;
179179
180180 // / A container for all MCDC records in the source on display.
181- std::vector <MCDCView> MCDCSubViews;
181+ SmallVector <MCDCView, 0 > MCDCSubViews;
182182
183183 // / A container for all instantiations (e.g template functions) in the source
184184 // / on display.
@@ -304,11 +304,11 @@ class SourceCoverageView {
304304 std::unique_ptr<SourceCoverageView> View);
305305
306306 // / Add a branch subview to this view.
307- void addBranch (unsigned Line, ArrayRef <CountedRegion> Regions,
307+ void addBranch (unsigned Line, SmallVector <CountedRegion, 0 > Regions,
308308 std::unique_ptr<SourceCoverageView> View);
309309
310310 // / Add an MCDC subview to this view.
311- void addMCDCRecord (unsigned Line, ArrayRef <MCDCRecord> Records,
311+ void addMCDCRecord (unsigned Line, SmallVector <MCDCRecord, 0 > Records,
312312 std::unique_ptr<SourceCoverageView> View);
313313
314314 // / Print the code coverage information for a specific portion of a
0 commit comments