[llvm] r237168 - Add a const method to iterator over PHI incoming values.

Pete Cooper peter_cooper at apple.com
Tue May 12 13:05:24 PDT 2015


Author: pete
Date: Tue May 12 15:05:23 2015
New Revision: 237168

URL: http://llvm.org/viewvc/llvm-project?rev=237168&view=rev
Log:
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().

Modified:
    llvm/trunk/include/llvm/IR/Instructions.h

Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=237168&r1=237167&r2=237168&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Tue May 12 15:05:23 2015
@@ -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(); }





More information about the llvm-commits mailing list