|
LLVM
3.7.0
|
#include "llvm/ProfileData/CoverageMapping.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/Optional.h"#include "llvm/ADT/SmallBitVector.h"#include "llvm/ProfileData/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 StringRef | getFuncNameWithoutPrefix (const CoverageMappingRecord &Record) |
| Get the function name from the record, removing the filename prefix if necessary. More... | |
| static SmallBitVector | gatherFileIDs (StringRef SourceFile, const FunctionRecord &Function) |
| static Optional< unsigned > | findMainViewFileID (StringRef SourceFile, const FunctionRecord &Function) |
| static Optional< unsigned > | findMainViewFileID (const FunctionRecord &Function) |
| template<class It > | |
| static void | sortNestedRegions (It First, It Last) |
| Sort a nested sequence of regions from a single file. 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 |
Definition at line 375 of file CoverageMapping.cpp.
References llvm::coverage::FunctionRecord::CountedRegions, llvm::coverage::CounterMappingRegion::ExpansionRegion, llvm::coverage::FunctionRecord::Filenames, gatherFileIDs(), I, and llvm::None.
Referenced by llvm::coverage::CoverageMapping::getCoverageForFile(), llvm::coverage::CoverageMapping::getCoverageForFunction(), and llvm::coverage::CoverageMapping::getInstantiations().
|
static |
Definition at line 390 of file CoverageMapping.cpp.
References llvm::coverage::FunctionRecord::CountedRegions, llvm::coverage::CounterMappingRegion::ExpansionRegion, llvm::coverage::FunctionRecord::Filenames, I, and llvm::None.
|
static |
Definition at line 366 of file CoverageMapping.cpp.
References llvm::coverage::FunctionRecord::Filenames, and I.
Referenced by findMainViewFileID(), and llvm::coverage::CoverageMapping::getCoverageForFile().
|
static |
Get the function name from the record, removing the filename prefix if necessary.
Definition at line 186 of file CoverageMapping.cpp.
References llvm::StringRef::drop_front(), llvm::sys::path::filename(), llvm::coverage::CoverageMappingRecord::Filenames, llvm::coverage::CoverageMappingRecord::FunctionName, llvm::StringRef::size(), and llvm::StringRef::startswith().
Referenced by llvm::coverage::CoverageMapping::load().
|
static |
Definition at line 412 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 |
Sort a nested sequence of regions from a single file.
Definition at line 402 of file CoverageMapping.cpp.
References llvm::coverage::CounterMappingRegion::endLoc(), and llvm::coverage::CounterMappingRegion::startLoc().
Referenced by llvm::coverage::CoverageMapping::getCoverageForExpansion(), llvm::coverage::CoverageMapping::getCoverageForFile(), and llvm::coverage::CoverageMapping::getCoverageForFunction().
|
static |
Definition at line 526 of file CoverageMapping.cpp.
Referenced by llvm::coveragemap_category().
1.8.6