summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageView.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-09-08 00:56:48 +0000
committerVedant Kumar <vsk@apple.com>2016-09-08 00:56:48 +0000
commit0053c0b679b516af48086346e38f6c87017a7ca5 (patch)
tree0d67b6548d8cecd9f877388cb6378494fac5646c /llvm/tools/llvm-cov/SourceCoverageView.h
parentfa754371831b1e75c7b39128b8d8cbfe6862ebd9 (diff)
downloadbcm5719-llvm-0053c0b679b516af48086346e38f6c87017a7ca5.tar.gz
bcm5719-llvm-0053c0b679b516af48086346e38f6c87017a7ca5.zip
[llvm-cov] Use less space to describe source names
In r279628, we made SourceCoverageView list the binary associated with a view and started adding labels (e.g "Source: foo" or "Function: bar") to everything. Condense this information a bit to unclutter reports. llvm-svn: 280896
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.h')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h
index 63c5b65a207..f2d5d6142cf 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.h
+++ b/llvm/tools/llvm-cov/SourceCoverageView.h
@@ -172,9 +172,6 @@ class SourceCoverageView {
/// on display.
std::vector<InstantiationView> InstantiationSubViews;
- /// Specifies whether or not the view is a function view.
- bool FunctionView;
-
/// Get the first uncovered line number for the source file.
unsigned getFirstUncoveredLineNo();
@@ -264,24 +261,24 @@ protected:
SourceCoverageView(StringRef SourceName, const MemoryBuffer &File,
const CoverageViewOptions &Options,
- coverage::CoverageData &&CoverageInfo, bool FunctionView)
+ coverage::CoverageData &&CoverageInfo)
: SourceName(SourceName), File(File), Options(Options),
- CoverageInfo(std::move(CoverageInfo)), FunctionView(FunctionView) {}
+ CoverageInfo(std::move(CoverageInfo)) {}
public:
static std::unique_ptr<SourceCoverageView>
create(StringRef SourceName, const MemoryBuffer &File,
const CoverageViewOptions &Options,
- coverage::CoverageData &&CoverageInfo, bool FucntionView = false);
+ coverage::CoverageData &&CoverageInfo);
virtual ~SourceCoverageView() {}
- StringRef getSourceName() const { return SourceName; }
-
/// \brief Return the source name formatted for the host OS.
- std::string getNativeSourceName() const;
+ std::string getSourceName() const;
- bool isFunctionView() const { return FunctionView; }
+ /// \brief Return a verbose description of the source name and the binary it
+ /// corresponds to.
+ std::string getVerboseSourceName() const;
const CoverageViewOptions &getOptions() const { return Options; }
OpenPOWER on IntegriCloud