[llvm-cov] Don't copy stylesheets into index files

Just link in the stylesheet from the toplevel dir of the report.

llvm-svn: 276468
This commit is contained in:
Vedant Kumar
2016-07-22 20:49:23 +00:00
parent 095f5b204f
commit 127d0502a0
2 changed files with 8 additions and 6 deletions

View File

@@ -247,7 +247,8 @@ Error CoveragePrinterHTML::createIndexFile(ArrayRef<StringRef> SourceFiles) {
raw_ostream &OSRef = *OS.get();
// Emit a table containing links to reports for each file in the covmapping.
emitPrelude(OSRef);
assert(Opts.hasOutputDirectory() && "No output directory for index file");
emitPrelude(OSRef, getPathToStyle(""));
OSRef << BeginSourceNameDiv << "Index" << EndSourceNameDiv;
OSRef << BeginTable;
for (StringRef SF : SourceFiles) {