Remove more occurrences of the unused-mutex-parameter pattern.
authorZachary Turner <zturner@google.com>
Tue, 17 Jun 2014 21:54:18 +0000 (21:54 +0000)
committerZachary Turner <zturner@google.com>
Tue, 17 Jun 2014 21:54:18 +0000 (21:54 +0000)
commita9380b3efd16186df72cc0808e668f1e37162dcb
tree9737d0ea9868cdb56e82d0c70b0f51173b68d712
parent0c7ebe9609e3f314d8289be100b31fe82600de5b
Remove more occurrences of the unused-mutex-parameter pattern.

This pattern loses some of its usefulness when the mutex type is
statically polymorphic as opposed to runtime polymorphic, as
swapping out the mutex type requires changing a significant number
of function parameters, and templatizing the function parameter
requires the methods to be defined in the headers.

Furthermore, if LLVM is compiled with threads disabled then there
may even be no mutex to acquire anyway, so it should not be up to
individual APIs to know whether or not acquiring a mutex is required
to use those APIs to begin with.  It should be up to the user of the
API.

llvm-svn: 211125
llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp