From: Adrian Prantl Date: Fri, 15 Nov 2019 17:14:30 +0000 (-0800) Subject: Comment the fact that DWARFDebugInfoEntry isn't copyable. X-Git-Tag: llvmorg-11-init~4167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bc71193bd4f29ebb5e5baa11581909972265b4f;p=platform%2Fupstream%2Fllvm.git Comment the fact that DWARFDebugInfoEntry isn't copyable. --- diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h index 25c8856..f3952ae 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h @@ -23,6 +23,10 @@ class DWARFDeclContext; #define DIE_SIBLING_IDX_BITSIZE 31 +/// DWARFDebugInfoEntry objects assume that they are living in one big +/// vector and do pointer arithmetic on their this pointers. Don't +/// pass them by value. Due to the way they are constructed in a +/// std::vector, we cannot delete the copy constructor. class DWARFDebugInfoEntry { public: typedef std::vector collection;