[llvm-commits] CVS: llvm/include/llvm/Analysis/DSSupport.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 22 09:27:01 PST 2004
Changes in directory llvm/include/llvm/Analysis:
DSSupport.h updated: 1.26 -> 1.27
---
Log message:
Specialize std::swap correctly
---
Diffs of the changes: (+5 -2)
Index: llvm/include/llvm/Analysis/DSSupport.h
diff -u llvm/include/llvm/Analysis/DSSupport.h:1.26 llvm/include/llvm/Analysis/DSSupport.h:1.27
--- llvm/include/llvm/Analysis/DSSupport.h:1.26 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Analysis/DSSupport.h Thu Jan 22 09:26:15 2004
@@ -127,7 +127,8 @@
} // End llvm namespace
namespace std {
- inline void swap(llvm::DSNodeHandle &NH1, llvm::DSNodeHandle &NH2) { NH1.swap(NH2); }
+ template<>
+ inline void swap<llvm::DSNodeHandle>(llvm::DSNodeHandle &NH1, llvm::DSNodeHandle &NH2) { NH1.swap(NH2); }
}
namespace llvm {
@@ -296,6 +297,8 @@
} // End llvm namespace
namespace std {
- inline void swap(llvm::DSCallSite &CS1, llvm::DSCallSite &CS2) { CS1.swap(CS2); }
+ template<>
+ inline void swap<llvm::DSCallSite>(llvm::DSCallSite &CS1,
+ llvm::DSCallSite &CS2) { CS1.swap(CS2); }
}
#endif
More information about the llvm-commits
mailing list