Add one more overload to make VS2008's debug mody happy.

sigh.

llvm-svn: 176946
This commit is contained in:
Benjamin Kramer 2013-03-13 13:50:47 +00:00
parent 2e9b174da6
commit dfbcba5ae0
1 changed files with 3 additions and 0 deletions

View File

@ -610,6 +610,9 @@ struct StringComparator {
// Provided for compatibility with MSVC's debug mode.
bool operator()(StringRef LHS, const char *RHS) const { return LHS < RHS; }
bool operator()(StringRef LHS, StringRef RHS) const { return LHS < RHS; }
bool operator()(const char *LHS, const char *RHS) const {
return std::strcmp(LHS, RHS) < 0;
}
};
}