mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Clean up some unnecessary mutex guards.
These were being used as unreferenced parameters to enforce that the methods must not be called without holding a mutex, but all of the methods in question were internal, and the methods were only exposed through an interface whose entire purpose was to serialize access to these structures, so expecting the methods to be accessed under a mutex is reasonable enough. Reviewed by: blaikie Differential Revision: http://reviews.llvm.org/D4162 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -54,7 +54,7 @@ namespace object {
|
||||
}
|
||||
|
||||
/// \brief Helper class for helping synchronize access to the global address map
|
||||
/// table.
|
||||
/// table. Access to this class should be serialized under a mutex.
|
||||
class ExecutionEngineState {
|
||||
public:
|
||||
struct AddressMapConfig : public ValueMapConfig<const GlobalValue*> {
|
||||
@ -84,19 +84,19 @@ private:
|
||||
public:
|
||||
ExecutionEngineState(ExecutionEngine &EE);
|
||||
|
||||
GlobalAddressMapTy &getGlobalAddressMap(const MutexGuard &) {
|
||||
GlobalAddressMapTy &getGlobalAddressMap() {
|
||||
return GlobalAddressMap;
|
||||
}
|
||||
|
||||
std::map<void*, AssertingVH<const GlobalValue> > &
|
||||
getGlobalAddressReverseMap(const MutexGuard &) {
|
||||
getGlobalAddressReverseMap() {
|
||||
return GlobalAddressReverseMap;
|
||||
}
|
||||
|
||||
/// \brief Erase an entry from the mapping table.
|
||||
///
|
||||
/// \returns The address that \p ToUnmap was happed to.
|
||||
void *RemoveMapping(const MutexGuard &, const GlobalValue *ToUnmap);
|
||||
void *RemoveMapping(const GlobalValue *ToUnmap);
|
||||
};
|
||||
|
||||
/// \brief Abstract interface for implementation execution of LLVM modules,
|
||||
|
Reference in New Issue
Block a user