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/PECOFF/ObjectFilePECOFF.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/PECOFF/ObjectFilePECOFF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index f908ec0a3c8..cc37568d6a0 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -648,6 +648,8 @@ ObjectFilePECOFF::GetSectionList() 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(); |