diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-05-25 07:24:30 -0400 |
---|---|---|
committer | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-05-25 13:38:35 -0400 |
commit | 346afb8572280292139c22a00f80afbbfdb509f6 (patch) | |
tree | 77025a686b42950a2eae9c83c7153befd9e5edcc /clang/lib/Basic/Module.cpp | |
parent | 150470a055d5c23b92de3f9110e5fd553aef19a0 (diff) | |
download | llvm-346afb8572280292139c22a00f80afbbfdb509f6.zip llvm-346afb8572280292139c22a00f80afbbfdb509f6.tar.gz llvm-346afb8572280292139c22a00f80afbbfdb509f6.tar.bz2 |
[lldb][nfc] Refactor methods with out parameter
Currently, the method `GetAttributeAddressRanges` takes a DWARFRangeList as a
parameter, just to immediately clear it. The method also returns the size of
this list. Such an API was obfuscating the intent of the call sites (it's not
clear from the method name what it returns) and it was obfuscating redundant
checks on the size of the list.
This commit refactors the method to return the list and to also make the call
sites use the more explicit `IsEmpty` method.
Differential Revision: https://reviews.llvm.org/D151451
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions