diff options
author | Vedant Kumar <vsk@apple.com> | 2016-07-21 23:26:15 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-07-21 23:26:15 +0000 |
commit | c076c490761998da900ed955e60dba1befc84866 (patch) | |
tree | 1e82994491393d1e3dfaa17c94d4c5ce87eee562 /llvm/tools/llvm-cov/SourceCoverageView.h | |
parent | 31fd506623efc23e28be6909b5656eb7945e8bb3 (diff) | |
download | bcm5719-llvm-c076c490761998da900ed955e60dba1befc84866.tar.gz bcm5719-llvm-c076c490761998da900ed955e60dba1befc84866.zip |
[llvm-cov] Use relative paths to the stylesheet (for html reports)
This makes it easy to swap out the default stylesheet for a custom one.
It also shaves ~6.62 MB out of the report directory for a full coverage
build of llvm+clang.
While we're at it, prune the CSS and add tests for it.
llvm-svn: 276359
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.h')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageView.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h index feef959f86b..6f2c4004c9b 100644 --- a/llvm/tools/llvm-cov/SourceCoverageView.h +++ b/llvm/tools/llvm-cov/SourceCoverageView.h @@ -99,8 +99,6 @@ struct LineCoverageStats { /// \brief A file manager that handles format-aware file creation. class CoveragePrinter { - const CoverageViewOptions &Opts; - public: struct StreamDestructor { void operator()(raw_ostream *OS) const; @@ -109,6 +107,8 @@ public: using OwnedStream = std::unique_ptr<raw_ostream, StreamDestructor>; protected: + const CoverageViewOptions &Opts; + CoveragePrinter(const CoverageViewOptions &Opts) : Opts(Opts) {} /// \brief Return `OutputDir/ToplevelDir/Path.Extension`. If \p InToplevel is |