[C++11] Add range based accessors for the Use-Def chain of a Value.
[oota-llvm.git] / include / llvm / IR / Instruction.h
index 10742f153b5724c6ba7214bc19858cf21c2ba3c8..928dc07b531696f03f336fefe23198cbd57f93b6 100644 (file)
@@ -45,10 +45,10 @@ public:
   // Out of line virtual method, so the vtable, etc has a home.
   ~Instruction();
 
-  /// use_back - Specialize the methods defined in Value, as we know that an
+  /// user_back - Specialize the methods defined in Value, as we know that an
   /// instruction can only be used by other instructions.
-  Instruction       *use_back()       { return cast<Instruction>(*use_begin());}
-  const Instruction *use_back() const { return cast<Instruction>(*use_begin());}
+  Instruction       *user_back()       { return cast<Instruction>(*user_begin());}
+  const Instruction *user_back() const { return cast<Instruction>(*user_begin());}
 
   inline const BasicBlock *getParent() const { return Parent; }
   inline       BasicBlock *getParent()       { return Parent; }