//===----------------------------------------------------------------------===//
#include "llvm/IR/Use.h"
+#include "llvm/IR/User.h"
#include "llvm/IR/Value.h"
#include <new>
: reinterpret_cast<User *>(const_cast<Use *>(End));
}
+unsigned Use::getOperandNo() const {
+ return this - getUser()->op_begin();
+}
+
// Sets up the waymarking algoritm's tags for a series of Uses. See the
// algorithm details here:
//