[llvm-commits] CVS: llvm/include/llvm/Support/CallSite.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 2 17:05:01 PST 2003
Changes in directory llvm/include/llvm/Support:
CallSite.h updated: 1.9 -> 1.10
---
Log message:
Allow CallSites to be used as the key of a map
---
Diffs of the changes: (+4 -0)
Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.9 llvm/include/llvm/Support/CallSite.h:1.10
--- llvm/include/llvm/Support/CallSite.h:1.9 Fri Oct 31 12:37:56 2003
+++ llvm/include/llvm/Support/CallSite.h Sun Nov 2 17:04:33 2003
@@ -83,6 +83,10 @@
return I->op_begin()+3; // Skip Function, BB, BB
}
arg_iterator arg_end() const { return I->op_end(); }
+
+ bool operator<(const CallSite &CS) const {
+ return getInstruction() < CS.getInstruction();
+ }
};
#endif
More information about the llvm-commits
mailing list