From 5cfb1100902eba94ae8a215900aed3b92a87141a Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Fri, 18 Mar 2022 13:34:15 -0700 Subject: [PATCH] [DebugInfo][NFC] Add a comment on the ordering of DILineInfo frames. 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 --- llvm/include/llvm/DebugInfo/DIContext.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/llvm/DebugInfo/DIContext.h b/llvm/include/llvm/DebugInfo/DIContext.h index 5bddc8b..a9f9858 100644 --- a/llvm/include/llvm/DebugInfo/DIContext.h +++ b/llvm/include/llvm/DebugInfo/DIContext.h @@ -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]; -- 2.7.4