Skip to content

Commit 0c900b5

Browse files
committed
Update ELFTypes.h to reflect that callsite offset refers to the beginning of the call.
1 parent b844e1d commit 0c900b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Object/ELFTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,8 @@ struct BBAddrMap {
917917
uint32_t Size = 0; // Size of the basic block.
918918
Metadata MD = {false, false, false, false,
919919
false}; // Metdata for this basic block.
920-
// Offsets of callsites (end of call instructions), relative to the basic
921-
// block start.
920+
// Offsets of callsites (beginning of call instructions), relative to the
921+
// basic block start.
922922
SmallVector<uint32_t, 1> CallsiteOffsets;
923923

924924
BBEntry(uint32_t ID, uint32_t Offset, uint32_t Size, Metadata MD,

0 commit comments

Comments
 (0)