[PATCH] D122033: [DebugInfo][NFC] Add a comment on the ordering of DILineInfo frames.
Snehasish Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 13:36:53 PDT 2022
snehasish created this revision.
snehasish added a reviewer: tejohnson.
Herald added a project: All.
snehasish requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Add a comment to getFrame() to mention that frames are stored in
bottom-up, i.e. leaf to root in order of increasing index.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122033
Files:
llvm/include/llvm/DebugInfo/DIContext.h
Index: llvm/include/llvm/DebugInfo/DIContext.h
===================================================================
--- llvm/include/llvm/DebugInfo/DIContext.h
+++ llvm/include/llvm/DebugInfo/DIContext.h
@@ -90,6 +90,8 @@
public:
DIInliningInfo() = default;
+ /// Returns the frame at `Index`. Frames are stored in bottom-up, i.e.
+ /// leaf-to-root order with increasing index.
const DILineInfo &getFrame(unsigned Index) const {
assert(Index < Frames.size());
return Frames[Index];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122033.416596.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/6e17af34/attachment.bin>
More information about the llvm-commits
mailing list