Skip to content

Commit c00e012

Browse files
committed
[ctx_profile] Follow the pattern elsewhere for choosing the block IDs
This was an oversight in #91859. Using the subblock ID mechanism other places that use the bitstream APIs (e.g. `BitstreamRemarkSerializer`) use.
1 parent c87b1ca commit c00e012

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/ProfileData/PGOCtxProfWriter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
#ifndef LLVM_PROFILEDATA_PGOCTXPROFWRITER_H_
1414
#define LLVM_PROFILEDATA_PGOCTXPROFWRITER_H_
1515

16+
#include "llvm/Bitstream/BitCodeEnums.h"
1617
#include "llvm/Bitstream/BitstreamWriter.h"
1718
#include "llvm/ProfileData/CtxInstrContextNode.h"
1819

1920
namespace llvm {
2021
enum PGOCtxProfileRecords { Invalid = 0, Version, Guid, CalleeIndex, Counters };
2122

2223
enum PGOCtxProfileBlockIDs {
23-
ProfileMetadataBlockID = 100,
24+
ProfileMetadataBlockID = bitc::FIRST_APPLICATION_BLOCKID,
2425
ContextNodeBlockID = ProfileMetadataBlockID + 1
2526
};
2627

0 commit comments

Comments
 (0)