From: Pete Cooper Date: Tue, 12 May 2015 20:05:23 +0000 (+0000) Subject: Add a const method to iterator over PHI incoming values. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=762a691bd6c89da8f9dc9d994442ad713cc13b16;p=oota-llvm.git Add a const method to iterator over PHI incoming values. This will be used in the next commit which converts code to use incoming_values(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237168 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 5b37d4b745b..e8e706916fb 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -2278,6 +2278,8 @@ public: op_range incoming_values() { return operands(); } + const_op_range incoming_values() const { return operands(); } + /// getNumIncomingValues - Return the number of incoming edges /// unsigned getNumIncomingValues() const { return getNumOperands(); }