[DebugInfo] Simplify GSYM::AddressRange and GSYM::AddressRanges
authorFangrui Song <maskray@google.com>
Fri, 28 Jun 2019 10:06:11 +0000 (10:06 +0000)
committerFangrui Song <maskray@google.com>
Fri, 28 Jun 2019 10:06:11 +0000 (10:06 +0000)
commit493a1202595c2a448fcfae3ff84869d57079895b
tree75f644333560a9a17094823dd4980276d54c512b
parenteb7080ac6e5e811102b28252554a824aeee17737
[DebugInfo] Simplify GSYM::AddressRange and GSYM::AddressRanges

Delete unnecessary getters of AddressRange.
Simplify AddressRange::size(): Start <= End check should be checked in an upper layer.
Delete isContiguousWith() that doesn't make sense.
Simplify AddressRanges::insert. Delete commented code. Fix it when more than 1 ranges are to be deleted.
Delete trailing newline.

llvm-svn: 364637
llvm/include/llvm/DebugInfo/GSYM/FunctionInfo.h
llvm/include/llvm/DebugInfo/GSYM/Range.h
llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
llvm/lib/DebugInfo/GSYM/InlineInfo.cpp
llvm/lib/DebugInfo/GSYM/Range.cpp
llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp