[LLDB][NativePDB] Minor fix ParseInlinesite.
authorZequan Wu <zequanwu@google.com>
Wed, 27 Apr 2022 17:46:51 +0000 (10:46 -0700)
committerZequan Wu <zequanwu@google.com>
Wed, 27 Apr 2022 17:56:03 +0000 (10:56 -0700)
commitafd639071bb32baae4ca390b3f0f5ab700d83222
treefa2367e1c871b242c77abb908704094348b3ef0d
parent1041a9642ba035fd2685f925911d705e8edf5bb0
[LLDB][NativePDB] Minor fix ParseInlinesite.

- Don't reset cur_line_offset to llvm::None when we don't have next_line_offset, because we may need to reuse it in new range after a code end.
- Don't use CombineConsecutiveEntriesWithEqualData for inline_site_sp->ranges, because that will combine consecutive entries with same data in the vector regardless of the entry's range. Originally, I thought that it only combine consecutive entries if adjacent entries' ranges are adjoining or intersecting with each other.
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp