aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorKonrad Kleine <kkleine@redhat.com>2019-11-27 10:57:06 +0100
committerKonrad Kleine <kkleine@redhat.com>2019-11-28 14:00:38 +0100
commit373e2a4f69d623e59329ff801f261d8b299e12d2 (patch)
tree30ff319f830fd7a30fbfdc3feeaab506c56e8210 /lldb/source/Commands/CommandObjectThread.cpp
parent3c3aca245e67fa70b6f49b9062983fbdf120ba04 (diff)
downloadllvm-373e2a4f69d623e59329ff801f261d8b299e12d2.zip
llvm-373e2a4f69d623e59329ff801f261d8b299e12d2.tar.gz
llvm-373e2a4f69d623e59329ff801f261d8b299e12d2.tar.bz2
[lldb] NFC: refactor CompileUnit::ResolveSymbolContext
Summary: I found the above named method hard to read because it had a) many nested blocks and b) one return statement at the end with some logic involved. I decided to refactor this function by employing an early exit strategy. In order to capture the logic in the return statement and to not have it repeated more than once I chose to implement a very small lamda function that captures all the variables it needs. This is a non-functional change (NFC). Reviewers: jdoerfert Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D70774
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions