aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-05 08:04:58 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-05 08:04:58 +0000
commitcb969e21599cc60afc16ca3a8a7d20c35117e1d7 (patch)
tree0bf00769aef084e4460fcc3b01cc79cc8a6b7e1b /lib/VMCore/Instructions.cpp
parente45f18b4ebf6d04d67774db97274b304ece77a6f (diff)
downloadexternal_llvm-cb969e21599cc60afc16ca3a8a7d20c35117e1d7.zip
external_llvm-cb969e21599cc60afc16ca3a8a7d20c35117e1d7.tar.gz
external_llvm-cb969e21599cc60afc16ca3a8a7d20c35117e1d7.tar.bz2
* Make CallSite::hasArgument const and let it take a const parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index d789267..f66076d 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -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;