aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Target/SubtargetFeature.h
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-01-26 20:41:32 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-01-26 20:41:32 +0000
commit9471c8a93b117d8ac01c4ef1cb9faa583e03dec0 (patch)
tree4cebe10aa3a8220b4bf6d1c4ff31487463bcdeb0 /include/llvm/Target/SubtargetFeature.h
parent4ccb070f158b0f331c68de800c6bab8c31c2ecb6 (diff)
Improve compatibility with VC2005, patch by Morten Ofstad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/SubtargetFeature.h')
-rw-r--r--include/llvm/Target/SubtargetFeature.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Target/SubtargetFeature.h b/include/llvm/Target/SubtargetFeature.h
index aab8688588..a9f7a71921 100644
--- a/include/llvm/Target/SubtargetFeature.h
+++ b/include/llvm/Target/SubtargetFeature.h
@@ -36,8 +36,8 @@ struct SubtargetFeatureKV {
uint32_t Value; // K-V integer value
// Compare routine for std binary search
- bool operator<(const std::string &S) const {
- return strcmp(Key, S.c_str()) < 0;
+ bool operator<(const SubtargetFeatureKV &S) const {
+ return strcmp(Key, S.Key) < 0;
}
};
@@ -51,8 +51,8 @@ struct SubtargetInfoKV {
void *Value; // K-V pointer value
// Compare routine for std binary search
- bool operator<(const std::string &S) const {
- return strcmp(Key, S.c_str()) < 0;
+ bool operator<(const SubtargetInfoKV &S) const {
+ return strcmp(Key, S.Key) < 0;
}
};