Comment the fact that DWARFDebugInfoEntry isn't copyable.
authorAdrian Prantl <aprantl@apple.com>
Fri, 15 Nov 2019 17:14:30 +0000 (09:14 -0800)
committerAdrian Prantl <aprantl@apple.com>
Fri, 15 Nov 2019 17:14:48 +0000 (09:14 -0800)
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h

index 25c8856..f3952ae 100644 (file)
@@ -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<DWARFDebugInfoEntry> collection;