summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineRegisterInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/MachineRegisterInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineRegisterInfo.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h
index 2e7f034be6b..5a409610a57 100644
--- a/include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/include/llvm/CodeGen/MachineRegisterInfo.h
@@ -376,12 +376,7 @@ public:
/// hasOneDef - Return true if there is exactly one instruction defining the
/// specified register.
- bool hasOneDef(unsigned RegNo) const {
- def_iterator DI = def_begin(RegNo);
- if (DI == def_end())
- return false;
- return ++DI == def_end();
- }
+ bool hasOneDef(unsigned RegNo, unsigned SubIdx = 0) const;
/// use_iterator/use_begin/use_end - Walk all uses of the specified register.
typedef defusechain_iterator<true,false,false,true,false,false>