[PATCH] D56505: expand DIContext interface a bit

David Callahan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 11:15:57 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL351107: expand DIContext interface a bit (authored by david2050, committed by ).

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56505/new/

https://reviews.llvm.org/D56505

Files:
  llvm/trunk/include/llvm/DebugInfo/DIContext.h


Index: llvm/trunk/include/llvm/DebugInfo/DIContext.h
===================================================================
--- llvm/trunk/include/llvm/DebugInfo/DIContext.h
+++ llvm/trunk/include/llvm/DebugInfo/DIContext.h
@@ -81,7 +81,7 @@
 public:
   DIInliningInfo() = default;
 
-  DILineInfo getFrame(unsigned Index) const {
+  const DILineInfo & getFrame(unsigned Index) const {
     assert(Index < Frames.size());
     return Frames[Index];
   }
@@ -98,6 +98,11 @@
   void addFrame(const DILineInfo &Frame) {
     Frames.push_back(Frame);
   }
+  
+  void resize(unsigned i) {
+    Frames.resize(i);
+  }
+  
 };
 
 /// Container for description of a global variable.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56505.181615.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190114/dfa3e4cc/attachment.bin>


More information about the llvm-commits mailing list