Index: llvm/trunk/tools/sancov/sancov.cpp =================================================================== --- llvm/trunk/tools/sancov/sancov.cpp +++ llvm/trunk/tools/sancov/sancov.cpp @@ -259,6 +259,10 @@ return make_error_code(errc::illegal_byte_sequence); } + // Ignore slots that are zero, so a runtime implementation is not required + // to compactify the data. + Addrs->erase(0); + return std::unique_ptr(new RawCoverage(std::move(Addrs))); } @@ -1229,7 +1233,7 @@ llvm::InitializeAllTargetMCs(); llvm::InitializeAllDisassemblers(); - cl::ParseCommandLineOptions(Argc, Argv, + cl::ParseCommandLineOptions(Argc, Argv, "Sanitizer Coverage Processing Tool (sancov)\n\n" " This tool can extract various coverage-related information from: \n" " coverage-instrumented binary files, raw .sancov files and their "