diff options
author | Sean Callanan <scallanan@apple.com> | 2012-06-08 02:16:08 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-06-08 02:16:08 +0000 |
commit | 5677536bff8c1bc018a3ebba2331b46a8b20ddb8 (patch) | |
tree | 3a07139f65694a3aef183d73d6bc22fcb732a721 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | d60367b8938dca0392daccd51a5aad3002709cae (diff) | |
download | bcm5719-llvm-5677536bff8c1bc018a3ebba2331b46a8b20ddb8.tar.gz bcm5719-llvm-5677536bff8c1bc018a3ebba2331b46a8b20ddb8.zip |
Committed a change to the SectionList that introduces
a cache of address ranges for child sections,
accelerating lookups. This cache is built during
object file loading, and is then set in stone once
the object files are done loading. (In Debug builds,
we ensure that the cache is never invalidated after
that.)
llvm-svn: 158188
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index be9f4271d69..3db50391f33 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -682,6 +682,8 @@ ObjectFileELF::GetSectionList() section_sp->SetIsThreadSpecific (is_thread_specific); m_sections_ap->AddSection(section_sp); } + + m_sections_ap->Finalize(); // Now that we're done adding sections, finalize to build fast-lookup caches } return m_sections_ap.get(); |