Remove access to the DataLayout in the TargetMachine
[oota-llvm.git] / tools / llvm-cov / CoverageReport.cpp
index db0754268c30b1fc360259023c17a1678256ddd5..497c2f88f2689465d48bff343162b206f7eca96d 100644 (file)
@@ -155,9 +155,10 @@ void CoverageReport::render(const FunctionCoverageSummary &Function,
   OS << "\n";
 }
 
-void CoverageReport::renderFunctionReports(raw_ostream &OS) {
+void CoverageReport::renderFunctionReports(ArrayRef<std::string> Files,
+                                           raw_ostream &OS) {
   bool isFirst = true;
-  for (StringRef Filename : Coverage->getUniqueSourceFiles()) {
+  for (StringRef Filename : Files) {
     if (isFirst)
       isFirst = false;
     else