diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-01 20:36:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-01 20:36:19 +0000 |
commit | 0cb9dd7aa28f091ee8bd0c86a2c7f55f288ac2fb (patch) | |
tree | 91da0d66dc796a2e4da725cbb521fd9a18af2c06 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 097102c32af229f7cb286c4f29c15c11bb83b8a9 (diff) | |
download | bcm5719-llvm-0cb9dd7aa28f091ee8bd0c86a2c7f55f288ac2fb.tar.gz bcm5719-llvm-0cb9dd7aa28f091ee8bd0c86a2c7f55f288ac2fb.zip |
switch the register iterator to act more like hte LLVM value iterator: dereferencing
it now returns the machineinstr of the use. To get the operand, use I.getOperand().
Add a new MachineRegisterInfo::replaceRegWith, which is basically like
Value::replaceAllUsesWith.
llvm-svn: 45482
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 43cc66d2370..0de5501b78d 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1,4 +1,4 @@ -//===-- MachineInstr.cpp --------------------------------------------------===// +//===-- lib/CodeGen/MachineInstr.cpp --------------------------------------===// // // The LLVM Compiler Infrastructure // |