MachineMove ctor doesn't need to to mutate input, add 'const'
authorChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 05:55:35 +0000 (05:55 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 05:55:35 +0000 (05:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98533 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineLocation.h

index 49344c5f98bebf4b505a14ef49d340e91e9b11a1..a1fcb9fe7576089e2012bdc374bf7d4cd96a3211 100644 (file)
@@ -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