projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15869aa
)
Allow CallSites to be used as the key of a map
author
Chris Lattner
<sabre@nondot.org>
Sun, 2 Nov 2003 23:04:33 +0000
(23:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 2 Nov 2003 23:04:33 +0000
(23:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9660
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/CallSite.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/CallSite.h
b/include/llvm/Support/CallSite.h
index 4f4ae965e32a9f5beff73f85702cacb12b0838cf..fab3b7c89624b08874789d8261d5d1353936999d 100644
(file)
--- a/
include/llvm/Support/CallSite.h
+++ b/
include/llvm/Support/CallSite.h
@@
-83,6
+83,10
@@
public:
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