fix use of std::std. it's ordered set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reed Kotler 2013-01-26 06:58:35 +00:00
parent 8090a24bd6
commit d07c64dce6

View File

@ -206,14 +206,14 @@ const char *MipsTargetLowering::getTargetNodeName(unsigned Opcode) const {
}
namespace {
struct eqstr {
struct ltstr {
bool operator()(const char *s1, const char *s2) const
{
return strcmp(s1, s2) == 0;
return strcmp(s1, s2) < 0;
}
};
std::set<const char*, eqstr> noHelperNeeded;
std::set<const char*, ltstr> noHelperNeeded;
const char* addToNoHelperNeeded(const char* s) {
noHelperNeeded.insert(s);