aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-09 00:00:42 +0000
committerDan Gohman <gohman@apple.com>2008-07-09 00:00:42 +0000
commitf877b735ad4987f26cafcbaf22aa4c2199458b5d (patch)
tree2b108be1599e477161ac76b36a75492d549cc533 /include
parent4e526b9a5b36d9bac170c03df0a5d6fb76740ae2 (diff)
const-ify SelectionDAG::getNodeValueTypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index a2da43f83e..c370c246e3 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -167,7 +167,7 @@ public:
const MVT *getNodeValueTypes(MVT VT1, MVT VT2, MVT VT3) {
return getVTList(VT1, VT2, VT3).VTs;
}
- const MVT *getNodeValueTypes(std::vector<MVT> &vtList) {
+ const MVT *getNodeValueTypes(const std::vector<MVT> &vtList) {
return getVTList(&vtList[0], (unsigned)vtList.size()).VTs;
}
@@ -312,7 +312,7 @@ public:
const SDOperand *Ops, unsigned NumOps);
SDOperand getNode(unsigned Opcode, MVT VT,
const SDUse *Ops, unsigned NumOps);
- SDOperand getNode(unsigned Opcode, std::vector<MVT> &ResultTys,
+ SDOperand getNode(unsigned Opcode, const std::vector<MVT> &ResultTys,
const SDOperand *Ops, unsigned NumOps);
SDOperand getNode(unsigned Opcode, const MVT *VTs, unsigned NumVTs,
const SDOperand *Ops, unsigned NumOps);
@@ -511,7 +511,7 @@ public:
const SDOperand *Ops, unsigned NumOps);
SDNode *getTargetNode(unsigned Opcode, MVT VT1, MVT VT2, MVT VT3, MVT VT4,
const SDOperand *Ops, unsigned NumOps);
- SDNode *getTargetNode(unsigned Opcode, std::vector<MVT> &ResultTys,
+ SDNode *getTargetNode(unsigned Opcode, const std::vector<MVT> &ResultTys,
const SDOperand *Ops, unsigned NumOps);
/// getNodeIfExists - Get the specified node if it's already available, or