summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-08-28 15:31:01 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-08-28 15:31:01 +0000
commit4925421c009935cb4b3afd92fdbf11367f43e8d1 (patch)
treef964df79a0ec784e1bd00a5695427bd019715ba1 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parentc1b27b562b64766f5b6aa3db6c35020e033311b5 (diff)
downloadbcm5719-llvm-4925421c009935cb4b3afd92fdbf11367f43e8d1.tar.gz
bcm5719-llvm-4925421c009935cb4b3afd92fdbf11367f43e8d1.zip
Use a RAII guard to control access to DisassemblerLLVMC.
Summary: This patch replaces the manual lock/unlock calls for gaining exclusive access to the disassembler with a RAII-powered access scope. This should prevent that we somehow skip over these trailing Unlock calls (e.g. with early returns). We also have a second `GetDisasmToUse` method now that takes an already constructed access scope to prevent deadlocks when we call this from other methods. Reviewers: #lldb, davide, vsk Reviewed By: #lldb, davide, vsk Subscribers: davide, vsk, lldb-commits Differential Revision: https://reviews.llvm.org/D51319 llvm-svn: 340835
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud