LLVM
8.0.1
|
#include "llvm/ProfileData/GCOV.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <system_error>
Go to the source code of this file.
Functions | |
static uint32_t | safeDiv (uint64_t Numerator, uint64_t Divisor) |
static uint32_t | branchDiv (uint64_t Numerator, uint64_t Divisor) |
static std::string | mangleCoveragePath (StringRef Filename, bool PreservePaths) |
Convert a path to a gcov filename. More... | |
|
static |
Definition at line 577 of file GCOV.cpp.
References llvm::GCOV::Options::BranchCount, llvm::StringRef::empty(), llvm::empty(), llvm::errs(), llvm::format(), llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFileOrSTDIN(), llvm::operator<<(), llvm::GCOVFile::print(), and llvm::StringRef::split().
Convert a path to a gcov filename.
If PreservePaths is true, this translates "/" to "#", ".." to "^", and drops ".", to match gcov.
Definition at line 645 of file GCOV.cpp.
References llvm::SmallString< InternalLen >::append(), llvm::StringRef::begin(), E, llvm::StringRef::end(), llvm::sys::path::filename(), I, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::StringRef::str(), and llvm::SmallString< InternalLen >::str().
Referenced by llvm::FileInfo::getCoveragePath().
|
static |
Definition at line 568 of file GCOV.cpp.
Referenced by llvm::FileInfo::printFunctionSummary().