|
LLVM
4.0.0
|
#include "llvm/ProfileData/Coverage/CoverageMapping.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/Optional.h"#include "llvm/ADT/SmallBitVector.h"#include "llvm/ProfileData/Coverage/CoverageMappingReader.h"#include "llvm/ProfileData/InstrProfReader.h"#include "llvm/Support/Debug.h"#include "llvm/Support/Errc.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/ManagedStatic.h"#include "llvm/Support/Path.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "coverage-mapping" |
Functions | |
| static SmallBitVector | gatherFileIDs (StringRef SourceFile, const FunctionRecord &Function) |
| static Optional< unsigned > | findMainViewFileID (const FunctionRecord &Function) |
| Return the ID of the file where the definition of the function is located. More... | |
| static Optional< unsigned > | findMainViewFileID (StringRef SourceFile, const FunctionRecord &Function) |
| Check if SourceFile is the file that contains the definition of the Function. More... | |
| static bool | isExpansion (const CountedRegion &R, unsigned FileID) |
Variables | |
| static ManagedStatic < CoverageMappingErrorCategoryType > | ErrorCategory |
| #define DEBUG_TYPE "coverage-mapping" |
Definition at line 31 of file CoverageMapping.cpp.
|
static |
Return the ID of the file where the definition of the function is located.
Definition at line 463 of file CoverageMapping.cpp.
References llvm::coverage::FunctionRecord::CountedRegions, llvm::coverage::CounterMappingRegion::ExpansionRegion, llvm::coverage::FunctionRecord::Filenames, I, and llvm::None.
Referenced by findMainViewFileID(), llvm::coverage::CoverageMapping::getCoverageForFile(), llvm::coverage::CoverageMapping::getCoverageForFunction(), and llvm::coverage::CoverageMapping::getInstantiations().
|
static |
Check if SourceFile is the file that contains the definition of the Function.
Return the ID of the file in that case or None otherwise.
Definition at line 476 of file CoverageMapping.cpp.
References llvm::coverage::FunctionRecord::Filenames, findMainViewFileID(), I, and llvm::None.
|
static |
Definition at line 453 of file CoverageMapping.cpp.
References E, llvm::coverage::FunctionRecord::Filenames, and I.
Referenced by llvm::coverage::CoverageMapping::getCoverageForFile().
|
static |
Definition at line 484 of file CoverageMapping.cpp.
References llvm::coverage::CounterMappingRegion::ExpansionRegion, llvm::coverage::CounterMappingRegion::FileID, and llvm::coverage::CounterMappingRegion::Kind.
Referenced by llvm::coverage::CoverageMapping::getCoverageForExpansion(), llvm::coverage::CoverageMapping::getCoverageForFile(), and llvm::coverage::CoverageMapping::getCoverageForFunction().
|
static |
Definition at line 603 of file CoverageMapping.cpp.
Referenced by llvm::coverage::coveragemap_category().
1.8.6