diff options
author | Enrico Granata <egranata@apple.com> | 2014-03-25 20:53:33 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-03-25 20:53:33 +0000 |
commit | afcbdb1570db71e6488bfb8ae064329aa9c0e683 (patch) | |
tree | 8a0eb115b20966a1d27b6ca2a7d677d57a12659d /lldb/source/Plugins/ObjectFile/ELF | |
parent | f596145ac52f9ef814f380ff258d984a1e65a788 (diff) | |
download | bcm5719-llvm-afcbdb1570db71e6488bfb8ae064329aa9c0e683.tar.gz bcm5719-llvm-afcbdb1570db71e6488bfb8ae064329aa9c0e683.zip |
<rdar://problem/14515139>
Add a GetFoundationVersion() to AppleObjCRuntime
This API is used to return and cache the major version of Foundation.framework, which is potentially a useful piece of data to key off of to enable or disable certain ObjC related behaviors (especially in data formatters)
llvm-svn: 204756
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 9aad296c47f..e4de46e24a1 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -526,7 +526,7 @@ ObjectFileELF::GetModuleSpecifications (const lldb_private::FileSpec& file, for (ProgramHeaderCollConstIter I = program_headers.begin(); I != program_headers.end(); ++I) { - segment_data_end = std::max (I->p_offset + I->p_filesz, segment_data_end); + segment_data_end = std::max<unsigned long long> (I->p_offset + I->p_filesz, segment_data_end); } if (segment_data_end > data_sp->GetByteSize()) |