[all-commits] [llvm/llvm-project] f292ca: [lldb][NFC] Simplify GetLocation_DW_OP_addr function
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Mon Jul 3 05:39:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f292ca136240a9c694aa280ad7fd0b961930804a
https://github.com/llvm/llvm-project/commit/f292ca136240a9c694aa280ad7fd0b961930804a
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2023-07-03 (Mon, 03 Jul 2023)
Changed paths:
M lldb/include/lldb/Expression/DWARFExpression.h
M lldb/source/Expression/DWARFExpression.cpp
M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Log Message:
-----------
[lldb][NFC] Simplify GetLocation_DW_OP_addr function
A very old commit (9422dd64f870dd33) changed the signature of this function in a
number of ways. This patch aims to improve it:
1. Reword the documentation, which still mentions old parameters that no longer
exist, and to elaborate upon the behavior of this function.
2. Remove the unnecessary parameter `op_addr_idx`. This parameter is odd in a
couple of ways: we never use it with a value that is non-zero, and the matching
`Update_DW_OP_addr` function doesn't use a similar parameter. We also document
that this new behavior. If we ever decide to handle multiple "DW_OP_addr", we
can introduce the complexity again.
Differential Revision: https://reviews.llvm.org/D154265
More information about the All-commits
mailing list