[llvm-commits] CVS: llvm/include/llvm/Target/SubtargetFeature.h

Jeff Cohen jeffc at jolt-lang.org
Thu Jan 26 12:41:47 PST 2006



Changes in directory llvm/include/llvm/Target:

SubtargetFeature.h updated: 1.5 -> 1.6
---
Log message:

Improve compatibility with VC2005, patch by Morten Ofstad!

---
Diffs of the changes:  (+4 -4)

 SubtargetFeature.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Target/SubtargetFeature.h
diff -u llvm/include/llvm/Target/SubtargetFeature.h:1.5 llvm/include/llvm/Target/SubtargetFeature.h:1.6
--- llvm/include/llvm/Target/SubtargetFeature.h:1.5	Tue Oct 25 10:15:28 2005
+++ llvm/include/llvm/Target/SubtargetFeature.h	Thu Jan 26 14:41:32 2006
@@ -36,8 +36,8 @@
   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 @@
   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;
   }
 };
   






More information about the llvm-commits mailing list