diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index 1d464431cbb..b3c895b44a6 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/tools/llvm-cov/CodeCoverage.cpp @@ -33,6 +33,7 @@ #include "llvm/Support/Process.h" #include "llvm/Support/Program.h" #include "llvm/Support/ScopedPrinter.h" +#include "llvm/Support/SpecialCaseList.h" #include "llvm/Support/ThreadPool.h" #include "llvm/Support/Threading.h" #include "llvm/Support/ToolOutputFile.h" diff --git a/tools/llvm-cov/CoverageFilters.cpp b/tools/llvm-cov/CoverageFilters.cpp index ca241e386e8..da3b5214eec 100644 --- a/tools/llvm-cov/CoverageFilters.cpp +++ b/tools/llvm-cov/CoverageFilters.cpp @@ -13,6 +13,7 @@ #include "CoverageFilters.h" #include "CoverageSummaryInfo.h" #include "llvm/Support/Regex.h" +#include "llvm/Support/SpecialCaseList.h" using namespace llvm; diff --git a/tools/llvm-cov/CoverageFilters.h b/tools/llvm-cov/CoverageFilters.h index ce56e160711..ccaa7a9df59 100644 --- a/tools/llvm-cov/CoverageFilters.h +++ b/tools/llvm-cov/CoverageFilters.h @@ -13,13 +13,17 @@ #ifndef LLVM_COV_COVERAGEFILTERS_H #define LLVM_COV_COVERAGEFILTERS_H -#include "CoverageSummaryInfo.h" -#include "llvm/ProfileData/Coverage/CoverageMapping.h" -#include "llvm/Support/SpecialCaseList.h" +#include "llvm/ADT/StringRef.h" #include #include namespace llvm { +class SpecialCaseList; + +namespace coverage { +class CoverageMapping; +struct FunctionRecord; +}; // namespace coverage /// Matches specific functions that pass the requirement of this filter. class CoverageFilter {