mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
* Make CallSite::hasArgument const and let it take a const parameter.
llvm-svn: 51989
This commit is contained in:
parent
d83b336e41
commit
6216df14cb
@ -132,7 +132,7 @@ public:
|
||||
|
||||
/// 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...
|
||||
|
@ -91,7 +91,7 @@ void CallSite::setDoesNotThrow(bool doesNotThrow) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user