mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
llvm-cov: Move FunctionCoverageMapping into CoverageMapping.h (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217657 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -220,6 +220,19 @@ public:
|
||||
ErrorOr<int64_t> evaluate(const Counter &C) const;
|
||||
};
|
||||
|
||||
/// \brief Code coverage information for a single function.
|
||||
struct FunctionCoverageMapping {
|
||||
/// \brief Raw function name.
|
||||
std::string Name;
|
||||
/// \brief Associated files.
|
||||
std::vector<std::string> Filenames;
|
||||
/// \brief Regions in the function along with their counts.
|
||||
std::vector<CountedRegion> CountedRegions;
|
||||
|
||||
FunctionCoverageMapping(StringRef Name, ArrayRef<StringRef> Filenames)
|
||||
: Name(Name), Filenames(Filenames.begin(), Filenames.end()) {}
|
||||
};
|
||||
|
||||
} // end namespace coverage
|
||||
} // end namespace llvm
|
||||
|
||||
|
Reference in New Issue
Block a user