[llvm-commits] [llvm] r98533 - /llvm/trunk/include/llvm/CodeGen/MachineLocation.h

Chris Lattner sabre at nondot.org
Sun Mar 14 22:55:36 PDT 2010


Author: lattner
Date: Mon Mar 15 00:55:35 2010
New Revision: 98533

URL: http://llvm.org/viewvc/llvm-project?rev=98533&view=rev
Log:
MachineMove ctor doesn't need to to mutate input, add 'const'

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineLocation.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineLocation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineLocation.h?rev=98533&r1=98532&r2=98533&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineLocation.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineLocation.h Mon Mar 15 00:55:35 2010
@@ -78,7 +78,8 @@
 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





More information about the llvm-commits mailing list