diff options
author | Zachary Turner <zturner@google.com> | 2017-04-06 21:28:29 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-04-06 21:28:29 +0000 |
commit | 2f3df6137a506e4c78a94adff2f27b3abaf4a31f (patch) | |
tree | 0f7c277caba9ffb16a1b8a447ebb33e69271847c /lldb/source/Core/DynamicLoader.cpp | |
parent | 1902b337e97fa794c87598fedecc0ad4a4a05969 (diff) | |
download | bcm5719-llvm-2f3df6137a506e4c78a94adff2f27b3abaf4a31f.tar.gz bcm5719-llvm-2f3df6137a506e4c78a94adff2f27b3abaf4a31f.zip |
iwyu fixes for lldbCore.
This adjusts header file includes for headers and source files
in Core. In doing so, one dependency cycle is eliminated
because all the includes from Core to that project were dead
includes anyway. In places where some files in other projects
were only compiling due to a transitive include from another
header, fixups have been made so that those files also include
the header they need. Tested on Windows and Linux, and plan
to address failures on OSX and FreeBSD after watching the
bots.
llvm-svn: 299714
Diffstat (limited to 'lldb/source/Core/DynamicLoader.cpp')
-rw-r--r-- | lldb/source/Core/DynamicLoader.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lldb/source/Core/DynamicLoader.cpp b/lldb/source/Core/DynamicLoader.cpp index 680de778a2e..03fad244acf 100644 --- a/lldb/source/Core/DynamicLoader.cpp +++ b/lldb/source/Core/DynamicLoader.cpp @@ -7,19 +7,25 @@ // //===----------------------------------------------------------------------===// -// C Includes -// C++ Includes -// Other libraries and framework includes -// Project includes #include "lldb/Target/DynamicLoader.h" + #include "lldb/Core/Module.h" +#include "lldb/Core/ModuleList.h" // for ModuleList #include "lldb/Core/ModuleSpec.h" #include "lldb/Core/PluginManager.h" #include "lldb/Core/Section.h" +#include "lldb/Symbol/ObjectFile.h" // for ObjectFile #include "lldb/Target/MemoryRegionInfo.h" #include "lldb/Target/Process.h" #include "lldb/Target/Target.h" -#include "lldb/lldb-private.h" +#include "lldb/Utility/ConstString.h" // for ConstString +#include "lldb/lldb-private-interfaces.h" // for DynamicLoaderCreateInstance + +#include "llvm/ADT/StringRef.h" // for StringRef + +#include <memory> // for shared_ptr, unique_ptr + +#include <assert.h> // for assert using namespace lldb; using namespace lldb_private; @@ -78,7 +84,7 @@ ModuleSP DynamicLoader::GetTargetExecutable() { if (executable->GetFileSpec().Exists()) { ModuleSpec module_spec(executable->GetFileSpec(), executable->GetArchitecture()); - ModuleSP module_sp(new Module(module_spec)); + auto module_sp = std::make_shared<Module>(module_spec); // Check if the executable has changed and set it to the target executable // if they differ. |