summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-02 23:04:33 +0000
committerChris Lattner <sabre@nondot.org>2003-11-02 23:04:33 +0000
commitac50030f86e794c008c27928dd50a679e601e678 (patch)
treefcc00641c39b599445d6dd2e9ca914c1a8b3a12b /include
parent15869aa2c717c356f62c04d85b73450aaabfee16 (diff)
downloadllvm-ac50030f86e794c008c27928dd50a679e601e678.tar.gz
llvm-ac50030f86e794c008c27928dd50a679e601e678.tar.bz2
llvm-ac50030f86e794c008c27928dd50a679e601e678.tar.xz
Allow CallSites to be used as the key of a map
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CallSite.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index 4f4ae965e3..fab3b7c896 100644
--- 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