[llvm] r257571 - [Coverage] Refactor coverage mapping reader code

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 21 03:48:54 PDT 2017


On Wed, Jan 13, 2016 at 04:36:15AM -0000, Xinliang David Li via llvm-commits wrote:
> Modified: llvm/trunk/include/llvm/ProfileData/CoverageMapping.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/CoverageMapping.h?rev=257571&r1=257570&r2=257571&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/ProfileData/CoverageMapping.h (original)
> +++ llvm/trunk/include/llvm/ProfileData/CoverageMapping.h Tue Jan 12 22:36:15 2016
> @@ -479,14 +489,50 @@ inline std::error_code make_error_code(c
>  // [Encoded Region Mapping Data]
>  LLVM_PACKED_START
>  template <class IntPtrT> struct CovMapFunctionRecord {
> -  #define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init) Type Name;
> -  #include "llvm/ProfileData/InstrProfData.inc"
> +#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init) Type Name;
> +#include "llvm/ProfileData/InstrProfData.inc"

This part now triggers a warning that the default packed attribute via
LLVM_PACKED_START affects the types in the included file. Is that
intentional? This applies to the 5.0 branch as well.

Joerg


More information about the llvm-commits mailing list