mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 07:50:50 +00:00
fix my previous commit r60064: compare strings instead of pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60174 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4aebaee0e4
commit
4ba9aac839
@ -27,7 +27,16 @@ Annotable::~Annotable() { // Virtual because it's designed to be subclassed...
|
||||
}
|
||||
}
|
||||
|
||||
typedef std::map<const char*, unsigned> IDMapType;
|
||||
namespace {
|
||||
class StrCmp {
|
||||
public:
|
||||
bool operator()(const char *a, const char *b) {
|
||||
return strcmp(a, b) < 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
typedef std::map<const char*, unsigned, StrCmp> IDMapType;
|
||||
static unsigned IDCounter = 0; // Unique ID counter
|
||||
|
||||
// Static member to ensure initialiation on demand.
|
||||
|
Loading…
x
Reference in New Issue
Block a user