LLVM API Documentation
#include "llvm/Support/GCOV.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/MemoryObject.h"
#include "llvm/Support/Path.h"
#include <algorithm>
#include <system_error>
Go to the source code of this file.
Classes | |
struct | formatBranchInfo |
Functions | |
static uint32_t | safeDiv (uint64_t Numerator, uint64_t Divisor) |
static uint32_t | branchDiv (uint64_t Numerator, uint64_t Divisor) |
static raw_ostream & | operator<< (raw_ostream &OS, const formatBranchInfo &FBI) |
static std::string | mangleCoveragePath (StringRef Filename, bool PreservePaths) |
static uint32_t branchDiv | ( | uint64_t | Numerator, |
uint64_t | Divisor | ||
) | [static] |
Definition at line 397 of file GCOV.cpp.
Referenced by formatBranchInfo::print().
static std::string mangleCoveragePath | ( | StringRef | Filename, |
bool | PreservePaths | ||
) | [static] |
Convert a path to a gcov filename. If PreservePaths is true, this translates "/" to "#", ".." to "^", and drops ".", to match gcov.
Definition at line 465 of file GCOV.cpp.
References llvm::SmallString< InternalLen >::append(), llvm::StringRef::begin(), llvm::StringRef::end(), llvm::sys::path::filename(), I, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::StringRef::str(), and llvm::SmallString< InternalLen >::str().
static raw_ostream& operator<< | ( | raw_ostream & | OS, |
const formatBranchInfo & | FBI | ||
) | [static] |
Definition at line 430 of file GCOV.cpp.
References formatBranchInfo::print().