clean up RecordKeeper::getAllDerivedDefinitions, patch by Garrison Venn!
authorChris Lattner <sabre@nondot.org>
Mon, 13 Dec 2010 00:20:52 +0000 (00:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Dec 2010 00:20:52 +0000 (00:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121658 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/Record.cpp

index 83db66d14e371d5bd840834c5489885828b9d1c6..f7a249fd9e3d61322ff337a4211776f7d011b5c3 100644 (file)
@@ -1497,7 +1497,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const RecordKeeper &RK) {
 /// name does not exist, an error is printed and true is returned.
 std::vector<Record*>
 RecordKeeper::getAllDerivedDefinitions(const std::string &ClassName) const {
-  Record *Class = Records.getClass(ClassName);
+  Record *Class = getClass(ClassName);
   if (!Class)
     throw "ERROR: Couldn't find the `" + ClassName + "' class!\n";