aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commita36422a0679c4cabf61d802a63d6beda43b24783 (patch)
tree2b108be1599e477161ac76b36a75492d549cc533 /lib/CodeGen
parent073688225a85d6adb89d412fdffb0cba0851d216 (diff)
downloadexternal_llvm-a36422a0679c4cabf61d802a63d6beda43b24783.zip
external_llvm-a36422a0679c4cabf61d802a63d6beda43b24783.tar.gz
external_llvm-a36422a0679c4cabf61d802a63d6beda43b24783.tar.bz2
const-ify SelectionDAG::getNodeValueTypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index e01e512..a82f6de 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3399,7 +3399,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT VT,
}
SDOperand SelectionDAG::getNode(unsigned Opcode,
- std::vector<MVT> &ResultTys,
+ const std::vector<MVT> &ResultTys,
const SDOperand *Ops, unsigned NumOps) {
return getNode(Opcode, getNodeValueTypes(ResultTys), ResultTys.size(),
Ops, NumOps);
@@ -3969,7 +3969,7 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT VT1,
return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 4, Ops, NumOps).Val;
}
SDNode *SelectionDAG::getTargetNode(unsigned Opcode,
- std::vector<MVT> &ResultTys,
+ const std::vector<MVT> &ResultTys,
const SDOperand *Ops, unsigned NumOps) {
const MVT *VTs = getNodeValueTypes(ResultTys);
return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, ResultTys.size(),