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/Record.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/Record.cpp')
-rw-r--r-- | utils/TableGen/Record.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index 109ed39..3bbb2d9 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -709,12 +709,12 @@ ListInit *Record::getValueAsListInit(const std::string &FieldName) const { "' does not have a list initializer!"; } -/// getValueAsListDef - This method looks up the specified field and returns +/// getValueAsListOfDefs - This method looks up the specified field and returns /// its value as a vector of records, throwing an exception if the field does /// not exist or if the value is not the right type. /// -std::vector<Record*> Record::getValueAsListDef(const std::string &FieldName) - const { +std::vector<Record*> +Record::getValueAsListOfDefs(const std::string &FieldName) const { ListInit *List = getValueAsListInit(FieldName); std::vector<Record*> Defs; for (unsigned i = 0; i < List->getSize(); i++) { |