diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2014-08-23 23:07:14 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2014-08-23 23:07:14 +0000 |
commit | c4c5180fb408e0eb3be50a7990aab110fcb0889c (patch) | |
tree | 5ffd003a5b9f764c1d584aac63e3108d5408b168 /llvm/lib/Target/PowerPC/PPCInstrFormats.td | |
parent | ffb55639e785d518bd06a4cb68cf163d820d31d6 (diff) | |
download | bcm5719-llvm-c4c5180fb408e0eb3be50a7990aab110fcb0889c.tar.gz bcm5719-llvm-c4c5180fb408e0eb3be50a7990aab110fcb0889c.zip |
Support: add llvm::unique_lock
Based on the STL class of the same name, it guards a mutex
while also allowing it to be unlocked conditionally before
destruction.
This eliminates the last naked usages of mutexes in LLVM and
clang.
It also uncovered and fixed a bug in callExternalFunction()
when compiled without USE_LIBFFI, where the mutex would never
be unlocked if the end of the function was reached.
llvm-svn: 216338
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrFormats.td')
0 files changed, 0 insertions, 0 deletions