Allow CallSites to be used as the key of a map

llvm-svn: 9660
This commit is contained in:
Chris Lattner 2003-11-02 23:04:33 +00:00
parent 2b9926fc8e
commit 2e8d28d082
1 changed files with 4 additions and 0 deletions

View File

@ -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