diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-03-13 13:50:47 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-03-13 13:50:47 +0000 |
commit | dec29b61a49da09e8ed494dcc1466f160614f80d (patch) | |
tree | 53ba9332f8566e12e01b69368987d8007de9869c /lib/Target/TargetLibraryInfo.cpp | |
parent | c5f77da0a19c7de081e1f8e5a3a6c025785d486a (diff) |
Add one more overload to make VS2008's debug mody happy.
sigh.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLibraryInfo.cpp')
-rw-r--r-- | lib/Target/TargetLibraryInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp index c6cafe59eb..ee88ce77c0 100644 --- a/lib/Target/TargetLibraryInfo.cpp +++ b/lib/Target/TargetLibraryInfo.cpp @@ -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; + } }; } |