aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-15 05:55:35 +0000
committerChris Lattner <sabre@nondot.org>2010-03-15 05:55:35 +0000
commitdfb9216b1ab6aeef9e065b2e1d3a74f2c518bc1c (patch)
treea362a431ac23dbad6eb2a06178ae6288b79495f7
parenta041d8989ba6cb70847b5d183a717c168764ddbf (diff)
downloadexternal_llvm-dfb9216b1ab6aeef9e065b2e1d3a74f2c518bc1c.zip
external_llvm-dfb9216b1ab6aeef9e065b2e1d3a74f2c518bc1c.tar.gz
external_llvm-dfb9216b1ab6aeef9e065b2e1d3a74f2c518bc1c.tar.bz2
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
-rw-r--r--include/llvm/CodeGen/MachineLocation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineLocation.h b/include/llvm/CodeGen/MachineLocation.h
index 49344c5..a1fcb9f 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