diff options
author | Greg Clayton <gclayton@apple.com> | 2015-02-20 22:20:05 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-02-20 22:20:05 +0000 |
commit | b65c6299d4dbada38e4f94f30bc54905a11f2305 (patch) | |
tree | 3d4f206c19acc995ea5ed431edbd9c5740e039f4 /lldb | |
parent | 8142a08ce729c28455f085746a46b6add122ad8f (diff) | |
download | bcm5719-llvm-b65c6299d4dbada38e4f94f30bc54905a11f2305.tar.gz bcm5719-llvm-b65c6299d4dbada38e4f94f30bc54905a11f2305.zip |
Make sure things build for iOS after recent changes.
llvm-svn: 230076
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index fd40a93c868..ec14450c4b8 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -2545,6 +2545,9 @@ ObjectFileMachO::ParseSymtab () } } + typedef std::set<ConstString> IndirectSymbols; + IndirectSymbols indirect_symbol_names; + #if defined (__APPLE__) && (defined (__arm__) || defined (__arm64__) || defined (__aarch64__)) // Some recent builds of the dyld_shared_cache (hereafter: DSC) have been optimized by moving LOCAL @@ -2724,6 +2727,12 @@ ObjectFileMachO::ParseSymtab () offset = 0; + typedef std::map<ConstString, uint16_t> UndefinedNameToDescMap; + typedef std::map<uint32_t, ConstString> SymbolIndexToName; + UndefinedNameToDescMap undefined_name_to_desc; + SymbolIndexToName reexport_shlib_needs_fixup; + + // Read the local_symbols_infos struct in one shot struct lldb_copy_dyld_cache_local_symbols_info local_symbols_info; dsc_local_symbols_data.GetU32(&offset, &local_symbols_info.nlistOffset, 6); @@ -2751,11 +2760,6 @@ ObjectFileMachO::ParseSymtab () nlist_data_offset = local_symbols_info.nlistOffset + (nlist_byte_size * local_symbols_entry.nlistStartIndex); uint32_t string_table_offset = local_symbols_info.stringsOffset; - typedef std::map<ConstString, uint16_t> UndefinedNameToDescMap; - typedef std::map<uint32_t, ConstString> SymbolIndexToName; - UndefinedNameToDescMap undefined_name_to_desc; - SymbolIndexToName reexport_shlib_needs_fixup; - for (uint32_t nlist_index = 0; nlist_index < local_symbols_entry.nlistCount; nlist_index++) { ///////////////////////////// @@ -3539,8 +3543,6 @@ ObjectFileMachO::ParseSymtab () // Must reset this in case it was mutated above! nlist_data_offset = 0; #endif - typedef std::set<ConstString> IndirectSymbols; - IndirectSymbols indirect_symbol_names; if (nlist_data.GetByteSize() > 0) { |