[all-commits] [llvm/llvm-project] 81be68: [lldb][nfc] Simplify DebugRanges class
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Fri May 12 05:50:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 81be68062f49dccfb0c28b98f04d88b5343c4ae6
https://github.com/llvm/llvm-project/commit/81be68062f49dccfb0c28b98f04d88b5343c4ae6
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2023-05-12 (Fri, 12 May 2023)
Changed paths:
M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp
M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.h
M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
Log Message:
-----------
[lldb][nfc] Simplify DebugRanges class
Most of the code changed here dates back to 2010, when LLDB was first
introduced upstream, as such it benefits from a slight cleanup.
The method "dump" is not used anywhere nor is it tested, so this commit removes
it.
The "findRanges" method returns a boolean which is never checked and indicates
whether the method found anything/assigned a range map to the out parameter.
This commit folds the out parameter into the return type of the method.
A handful of typedefs were also never used and therefore removed.
Differential Revision: https://reviews.llvm.org/D150363
More information about the All-commits
mailing list