[NFC] Cleanup RangeMap.h
authorTamas Berghammer <tberghammer@google.com>
Tue, 2 Feb 2016 18:18:13 +0000 (18:18 +0000)
committerTamas Berghammer <tberghammer@google.com>
Tue, 2 Feb 2016 18:18:13 +0000 (18:18 +0000)
commit7a2a5ce0589f8ac9b5c6ca8e7bf202061f7565aa
treedd22431e98c74560b7f6a5aca84344dab7551e15
parentbbac6d7c1b510fe0b0f0923d4c5a15c41d9a5436
[NFC] Cleanup RangeMap.h

The file contained very similar 4 implementation of the same data
structure with a lot of duplicated code and some minor API differences.
This CL refactor the class to eliminate the duplicated codes and to
unify the APIs.

RangeMap.h also contained a class called AddressDataArray what have very
little added functionality over an std::vector and used only by
ObjectFileMacO The CL moves the class to ObjectFileMachO.cpp as it isn't
belongs into RangeMap.h and shouldn't be used in new places anyway
because of the little added functionality.

Differential revision: http://reviews.llvm.org/D16769

llvm-svn: 259538
lldb/include/lldb/Core/RangeMap.h
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp