/// hasArgument - Returns true if this CallSite passes the given Value* as an
/// argument to the called function.
- bool hasArgument(Value *Arg);
+ bool hasArgument(const Value *Arg) const;
/// arg_iterator - The type of iterator to use when looping over actual
/// arguments at this call site...
cast<InvokeInst>(I)->setDoesNotThrow(doesNotThrow);
}
-bool CallSite::hasArgument(Value *Arg) {
+bool CallSite::hasArgument(const Value *Arg) const {
for (arg_iterator AI = this->arg_begin(), E = this->arg_end(); AI != E; ++AI)
if (AI->get() == Arg)
return true;