[Lldb-commits] [lldb] r256616 - [ptr-traits] Add an #include to provide the complete type for Section
Chandler Carruth via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 29 19:48:24 PST 2015
Author: chandlerc
Date: Tue Dec 29 21:48:24 2015
New Revision: 256616
URL: http://llvm.org/viewvc/llvm-project?rev=256616&view=rev
Log:
[ptr-traits] Add an #include to provide the complete type for Section
which is the pointee in a pointer keyed DenseMap.
Pointer keys in a DenseMap have their low bits used by the map
implementation and in order to do this safely we need to know the
alignment of the pointer. We can only do this if we have the complete
type of the pointee. This is part of larger cleanup across LLVM and
subprojects to allow us to start enforcing this strictly.
Modified:
lldb/trunk/include/lldb/Target/SectionLoadList.h
Modified: lldb/trunk/include/lldb/Target/SectionLoadList.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/SectionLoadList.h?rev=256616&r1=256615&r2=256616&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/SectionLoadList.h (original)
+++ lldb/trunk/include/lldb/Target/SectionLoadList.h Tue Dec 29 21:48:24 2015
@@ -18,6 +18,7 @@
#include "llvm/ADT/DenseMap.h"
// Project includes
#include "lldb/lldb-public.h"
+#include "lldb/Core/Section.h"
#include "lldb/Host/Mutex.h"
namespace lldb_private {
More information about the lldb-commits
mailing list