[TableGen] Merge RecTy::typeIsConvertibleTo and RecTy::baseClassOf. NFC
authorCraig Topper <craig.topper@gmail.com>
Sat, 30 May 2015 07:36:01 +0000 (07:36 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 30 May 2015 07:36:01 +0000 (07:36 +0000)
commitbe43b88fae1091a84d13defbfc69474f030d46ba
treec11ee8c61b9de1391bdcebfaa622b59ea5fc5acc
parent15617cdf57ad1edd42ccce72e5c06f2248106955
[TableGen] Merge RecTy::typeIsConvertibleTo and RecTy::baseClassOf. NFC

typeIsConvertibleTo was just calling baseClassOf(this) on the argument passed to it, but there weren't different signatures for baseClassOf so passing 'this' didn't really do anything interesting. typeIsConvertibleTo could have just been a non-virtual method in RecTy. But since that would be kind of a silly method, I instead re-distributed the logic from baseClassOf into typeIsConvertibleTo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238648 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/TableGen/Record.h
lib/TableGen/Record.cpp