aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-05-25 07:24:30 -0400
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-05-25 13:38:35 -0400
commit346afb8572280292139c22a00f80afbbfdb509f6 (patch)
tree77025a686b42950a2eae9c83c7153befd9e5edcc /clang/lib/Basic/Module.cpp
parent150470a055d5c23b92de3f9110e5fd553aef19a0 (diff)
downloadllvm-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