Skip to content

Commit e20c9d2

Browse files
author
Kyle Krueger
committed
move InstantiationView ctor to .cpp
1 parent 827a562 commit e20c9d2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

llvm/tools/llvm-cov/SourceCoverageView.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ ExpansionView& ExpansionView::operator=(ExpansionView &&RHS) {
3434
return *this;
3535
}
3636

37+
InstantiationView::InstantiationView(StringRef FunctionName, unsigned Line,
38+
std::unique_ptr<SourceCoverageView> View)
39+
: FunctionName(FunctionName), Line(Line), View(std::move(View)) {}
40+
3741
void CoveragePrinter::StreamDestructor::operator()(raw_ostream *OS) const {
3842
if (OS == &outs())
3943
return;

llvm/tools/llvm-cov/SourceCoverageView.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ struct InstantiationView {
5252
std::unique_ptr<SourceCoverageView> View;
5353

5454
InstantiationView(StringRef FunctionName, unsigned Line,
55-
std::unique_ptr<SourceCoverageView> View)
56-
: FunctionName(FunctionName), Line(Line), View(std::move(View)) {}
55+
std::unique_ptr<SourceCoverageView> View);
5756

5857
friend bool operator<(const InstantiationView &LHS,
5958
const InstantiationView &RHS) {

0 commit comments

Comments
 (0)