[llvm-commits] CVS: llvm/lib/Target/X86/X86FloatingPoint.cpp

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



Changes in directory llvm/lib/Target/X86:

X86FloatingPoint.cpp updated: 1.48 -> 1.49
---
Log message:

Improve compatibility with VC2005, patch by Morten Ofstad!

---
Diffs of the changes:  (+6 -1)

 X86FloatingPoint.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.48 llvm/lib/Target/X86/X86FloatingPoint.cpp:1.49
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.48	Sun Jan 22 17:37:17 2006
+++ llvm/lib/Target/X86/X86FloatingPoint.cpp	Thu Jan 26 14:41:32 2006
@@ -281,7 +281,12 @@
     unsigned from;
     unsigned to;
     bool operator<(const TableEntry &TE) const { return from < TE.from; }
-    bool operator<(unsigned V) const { return from < V; }
+    friend bool operator<(const TableEntry &TE, unsigned V) {
+      return TE.from < V;
+    }
+    friend bool operator<(unsigned V, const TableEntry &TE) {
+      return V < TE.from;
+    }
   };
 }
 






More information about the llvm-commits mailing list