diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-10-28 22:49:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-10-28 22:49:02 +0000 |
| commit | b0e103d46bf8799ac5523157a6ed4a78d1751a89 (patch) | |
| tree | ef284005cbd3353ba5173ca006f93c5bf655e1bc /utils/TableGen/DAGISelEmitter.cpp | |
| parent | 6bc0d742c284d65514b63f3fa4a2bb3ab1fe040e (diff) | |
| download | external_llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.zip external_llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.gz external_llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.bz2 | |
Rename Record::getValueAsListDef to getValueAsListOfDefs, to more accurately
reflect what it is.
Convert some more code over to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.cpp')
| -rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 590a5ba..fb52355 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -228,7 +228,7 @@ SDNodeInfo::SDNodeInfo(Record *R) : Def(R) { // Parse the properties. Properties = 0; - std::vector<Record*> PropList = R->getValueAsListDef("Properties"); + std::vector<Record*> PropList = R->getValueAsListOfDefs("Properties"); for (unsigned i = 0, e = PropList.size(); i != e; ++i) { if (PropList[i]->getName() == "SDNPCommutative") { Properties |= 1 << SDNPCommutative; @@ -243,8 +243,9 @@ SDNodeInfo::SDNodeInfo(Record *R) : Def(R) { // Parse the type constraints. - std::vector<Record*> ConstList =TypeProfile->getValueAsListDef("Constraints"); - TypeConstraints.assign(ConstList.begin(), ConstList.end()); + std::vector<Record*> ConstraintList = + TypeProfile->getValueAsListOfDefs("Constraints"); + TypeConstraints.assign(ConstraintList.begin(), ConstraintList.end()); } //===----------------------------------------------------------------------===// |
