diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-14 23:31:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-14 23:31:51 +0000 |
commit | 2fa6d3b1fcadbde90eaee0e8e89aebd81630b662 (patch) | |
tree | b1cc5444e7815fca810ed9bf7d94b477a7266da0 /include/llvm/CodeGen/SelectionDAGNodes.h | |
parent | 64d128de9c1fa813d79239ea2405bd8f8ef5295c (diff) |
Add a new getNode() method that takes a pointer to an already-intern'd list
of value-type nodes. This avoids having to do mallocs for std::vectors of
valuetypes when a node returns more than one type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index dc58bd97a0..86c8d2e5ff 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -697,7 +697,7 @@ class SDNode { /// ValueList - The types of the values this node defines. SDNode's may /// define multiple values simultaneously. - MVT::ValueType *ValueList; + const MVT::ValueType *ValueList; /// NumOperands/NumValues - The number of entries in the Operand/Value list. unsigned short NumOperands, NumValues; @@ -899,7 +899,7 @@ protected: NumOperands = 0; } - void setValueTypes(MVT::ValueType *List, unsigned NumVal) { + void setValueTypes(const MVT::ValueType *List, unsigned NumVal) { assert(NumValues == 0 && "Should not have values yet!"); ValueList = List; NumValues = NumVal; |