mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
remove a bunch of locking from LLVMContextImpl. Since only one thread
can be banging on a context at a time, this isn't needed. Owen, please review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#define LLVM_TYPE_SYMBOL_TABLE_H
|
||||
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include <map>
|
||||
|
||||
namespace llvm {
|
||||
@ -69,12 +70,16 @@ public:
|
||||
/// Lookup the type associated with name.
|
||||
/// @returns end() if the name is not found, or an iterator at the entry for
|
||||
/// Type.
|
||||
iterator find(const StringRef &name);
|
||||
iterator find(const StringRef &Name) {
|
||||
return tmap.find(Name);
|
||||
}
|
||||
|
||||
/// Lookup the type associated with name.
|
||||
/// @returns end() if the name is not found, or an iterator at the entry for
|
||||
/// Type.
|
||||
const_iterator find(const StringRef &name) const;
|
||||
const_iterator find(const StringRef &Name) const {
|
||||
return tmap.find(Name);
|
||||
}
|
||||
|
||||
/// @returns true iff the symbol table is empty.
|
||||
/// @brief Determine if the symbol table is empty
|
||||
|
Reference in New Issue
Block a user