[TableGen] Enhance !cast<string> to handle bit and bits types.
authorPaul C. Anagnostopoulos <paul@windfall.com>
Tue, 12 Jan 2021 17:55:57 +0000 (12:55 -0500)
committerPaul C. Anagnostopoulos <paul@windfall.com>
Thu, 14 Jan 2021 15:20:35 +0000 (10:20 -0500)
commita022be625387370cf67b26c6b99b05f16b2a8610
tree02e651cc2363fc65227512459ab8dadf0898f3bf
parentc0939fddf80c16829502186e2e5b78f77696310a
[TableGen] Enhance !cast<string> to handle bit and bits types.

Add a test for this.

Differential Revision: https://reviews.llvm.org/D94529
llvm/lib/TableGen/Record.cpp
llvm/test/TableGen/cast-string.td [new file with mode: 0644]