TableGen: Generate valid identifiers for anonymous records
authorAlp Toker <alp@nuanti.com>
Sat, 21 Dec 2013 18:51:00 +0000 (18:51 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 21 Dec 2013 18:51:00 +0000 (18:51 +0000)
commitcee93e95a4bb45e44d6029404fc47084e48b7775
tree35ee8f09c82d0ecc0b99f0c4a4c5d0f642595541
parentefe6aa1adb625dc3027c5e47466e694b4ac2e1d8
TableGen: Generate valid identifiers for anonymous records

Backends like OptParserEmitter assume that record names can be used as valid
identifiers.

The period '.' in generated anonymous names broke that assumption, causing a
build-time error and in practice forcing all records to be named.

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