LLVM  3.7.0
Macros | Functions | Variables
CoverageMapping.cpp File Reference
#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"
Include dependency graph for CoverageMapping.cpp:

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< unsignedfindMainViewFileID (StringRef SourceFile, const FunctionRecord &Function)
 
static Optional< unsignedfindMainViewFileID (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
 

Macro Definition Documentation

#define DEBUG_TYPE   "coverage-mapping"

Definition at line 31 of file CoverageMapping.cpp.

Function Documentation

static Optional<unsigned> findMainViewFileID ( StringRef  SourceFile,
const FunctionRecord Function 
)
static
static Optional<unsigned> findMainViewFileID ( const FunctionRecord Function)
static
static SmallBitVector gatherFileIDs ( StringRef  SourceFile,
const FunctionRecord Function 
)
static
static StringRef getFuncNameWithoutPrefix ( const CoverageMappingRecord Record)
static
static bool isExpansion ( const CountedRegion R,
unsigned  FileID 
)
static
template<class It >
static void sortNestedRegions ( It  First,
It  Last 
)
static

Variable Documentation

ManagedStatic<CoverageMappingErrorCategoryType> ErrorCategory
static

Definition at line 526 of file CoverageMapping.cpp.

Referenced by llvm::coveragemap_category().