Skip to content

Commit

Permalink
[DebugInfo][NFC] Add a comment on the ordering of DILineInfo frames.
Browse files Browse the repository at this point in the history
Add a comment to getFrame() to mention that frames are stored in
bottom-up, i.e. leaf to root in order of increasing index.

Differential Revision: https://reviews.llvm.org/D122033
  • Loading branch information
snehasish committed Mar 21, 2022
1 parent c9a3d29 commit 5cfb110
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/include/llvm/DebugInfo/DIContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ class DIInliningInfo {
public:
DIInliningInfo() = default;

/// Returns the frame at `Index`. Frames are stored in bottom-up
/// (leaf-to-root) order with increasing index.
const DILineInfo &getFrame(unsigned Index) const {
assert(Index < Frames.size());
return Frames[Index];
Expand Down

0 comments on commit 5cfb110

Please sign in to comment.