From 6894b07996757134b7036753fcad85f354a0f5bd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Mar 2010 05:55:35 +0000 Subject: [PATCH] MachineMove ctor doesn't need to to mutate input, add 'const' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98533 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineLocation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/MachineLocation.h b/include/llvm/CodeGen/MachineLocation.h index 49344c5f98b..a1fcb9fe757 100644 --- a/include/llvm/CodeGen/MachineLocation.h +++ b/include/llvm/CodeGen/MachineLocation.h @@ -78,7 +78,8 @@ private: public: MachineMove() : Label(0) {} - MachineMove(MCSymbol *label, MachineLocation &D, MachineLocation &S) + MachineMove(MCSymbol *label, const MachineLocation &D, + const MachineLocation &S) : Label(label), Destination(D), Source(S) {} // Accessors -- 2.34.1