1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

clean up RecordKeeper::getAllDerivedDefinitions, patch by Garrison Venn!

llvm-svn: 121658
This commit is contained in:
Chris Lattner 2010-12-13 00:20:52 +00:00
parent a008be1ee9
commit 5e7e7c817c

View 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";