summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-28 22:49:02 +0000
committerChris Lattner <sabre@nondot.org>2005-10-28 22:49:02 +0000
commitb0e103d46bf8799ac5523157a6ed4a78d1751a89 (patch)
treeef284005cbd3353ba5173ca006f93c5bf655e1bc /utils/TableGen/Record.cpp
parent6bc0d742c284d65514b63f3fa4a2bb3ab1fe040e (diff)
downloadllvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.gz
llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.bz2
llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.xz
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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp
index 109ed39251..3bbb2d9116 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++) {