llvm.org GIT mirror llvm / 01f93a4
A few handy methods that seem to mesh well with what CallSite already provides. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9737 91177308-0d34-0410-b5e6-96231b3b80d8 Brian Gaeke 16 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4343 return CallSite();
4444 }
4545
46 /// getType - Return the type of the instruction that generated this call site
47 ///
48 const Type *getType () const { return I->getType (); }
49
4650 /// getInstruction - Return the instruction this call site corresponds to
4751 ///
4852 Instruction *getInstruction() const { return I; }
8286 return I->op_begin()+3; // Skip Function, BB, BB
8387 }
8488 arg_iterator arg_end() const { return I->op_end(); }
89 unsigned arg_size() const { return arg_end() - arg_begin(); }
8590
8691 bool operator<(const CallSite &CS) const {
8792 return getInstruction() < CS.getInstruction();