summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit227aa3595b50be335a03876a6f93696134e49395 (patch)
tree11e2f0502f479ac7bdfdc0c7e8da1db45a84c152 /llvm
parenteb319f36b98d9f113d217042b4ed9b7385d5b890 (diff)
downloadbcm5719-llvm-227aa3595b50be335a03876a6f93696134e49395.tar.gz
bcm5719-llvm-227aa3595b50be335a03876a6f93696134e49395.zip
MachineMove ctor doesn't need to to mutate input, add 'const'
llvm-svn: 98533
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineLocation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineLocation.h b/llvm/include/llvm/CodeGen/MachineLocation.h
index 49344c5f98b..a1fcb9fe757 100644
--- a/llvm/include/llvm/CodeGen/MachineLocation.h
+++ b/llvm/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
OpenPOWER on IntegriCloud