aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-05-24 03:14:18 +0000
committerTanya Lattner <tonic@nondot.org>2004-05-24 03:14:18 +0000
commit0c63e03e04d3982e1913479bba404c3debc9a27e (patch)
treea9105aa31e8b4d7edfa54103945ab15a980a47c7 /include/llvm/CodeGen/MachineInstr.h
parent86f238230bd91dac64a0c2ae62bd2d903777fb5b (diff)
Changed clone to be const.
Changed copy constructor to set parent, prev, and next pointers to null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index a488b45f78..02c881d64a 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -460,7 +460,7 @@ public:
/// clone - Create a copy of 'this' instruction that is identical in
/// all ways except the the instruction has no parent, prev, or next.
- MachineInstr* clone();
+ MachineInstr* clone() const;
//
// Debugging support