]> granicus.if.org Git - llvm/commit
[TableGen] Give meaningful msg for def use in multiclass
authorJaved Absar <javed.absar@arm.com>
Tue, 26 Mar 2019 10:49:09 +0000 (10:49 +0000)
committerJaved Absar <javed.absar@arm.com>
Tue, 26 Mar 2019 10:49:09 +0000 (10:49 +0000)
commit0a995825115781637fd4d15b1a9f3f02c2efc3b1
tree337db0ff851a7fb66961272a32dd5a374a5fc47a
parent286540be1a037c282e37c94e8f66a5741b873b66
[TableGen] Give meaningful msg for def use in multiclass

When one mistakenly specifies 'def' instead of using 'defm',
the error message is quite misleading: 'Couldn't find class..'
Instead, it should recommend using defm if the multiclass of
same name exists.

Reviewed By: hfinkel

Differential Revision: https://reviews.llvm.org/D59294

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356985 91177308-0d34-0410-b5e6-96231b3b80d8
lib/TableGen/TGParser.cpp
test/TableGen/MultiClass-def-fail.td [new file with mode: 0644]