[llvm] r176946 - Add one more overload to make VS2008's debug mody happy.
Benjamin Kramer
benny.kra at googlemail.com
Wed Mar 13 06:50:47 PDT 2013
Author: d0k
Date: Wed Mar 13 08:50:47 2013
New Revision: 176946
URL: http://llvm.org/viewvc/llvm-project?rev=176946&view=rev
Log:
Add one more overload to make VS2008's debug mody happy.
sigh.
Modified:
llvm/trunk/lib/Target/TargetLibraryInfo.cpp
Modified: llvm/trunk/lib/Target/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLibraryInfo.cpp?rev=176946&r1=176945&r2=176946&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLibraryInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetLibraryInfo.cpp Wed Mar 13 08:50:47 2013
@@ -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;
+ }
};
}
More information about the llvm-commits
mailing list