X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fllvm%2FProfileData%2FInstrProf.h;h=d4119ed55c4ca4270708ab75d3bec4c4786c5167;hb=0bf62648ad5e726ce5bf165b50bf2a86bdaa74bf;hp=2be174d573d0b524854c080222c5353f978da198;hpb=8d079d54a311de24ff036c953e53fa47435282e2;p=oota-llvm.git diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index 2be174d573d..d4119ed55c4 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -431,11 +431,8 @@ inline uint64_t getMagic() { template struct ProfileData { - const uint32_t NameSize; - const uint32_t NumCounters; - const uint64_t FuncHash; - const IntPtrT NamePtr; - const IntPtrT CounterPtr; + #define INSTR_PROF_DATA(Type, LLVMType, Name, Init) Type Name; + #include "llvm/ProfileData/InstrProfData.inc" }; // The definition should match the header referenced in @@ -454,6 +451,18 @@ struct Header { } // end namespace RawInstrProf +namespace coverage { + +LLVM_PACKED_START +template +struct CovMapFunctionRecord { + #define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init) Type Name; + #include "llvm/ProfileData/InstrProfData.inc" +}; +LLVM_PACKED_END + +} + } // end namespace llvm namespace std {