llvm/lib/TableGen
Matt Arsenault 6a224c30a5 TableGen: Support folding casts from bits to int
This is to fix an incorrect error when trying to initialize
DwarfNumbers with a !cast<int> of a bits initializer.
getValuesAsListOfInts("DwarfNumbers") would not see an IntInit
and instead the cast, so would give up.

It seems likely that this could be generalized to attempt
the convertInitializerTo for any type. I'm not really sure
why the existing code seems to special case the string cast cases
when convertInitializerTo seems like it should generally handle this
sort of thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243722 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-31 01:12:06 +00:00
..
CMakeLists.txt
Error.cpp
LLVMBuild.txt
Main.cpp
Makefile
module.modulemap
Record.cpp TableGen: Support folding casts from bits to int 2015-07-31 01:12:06 +00:00
SetTheory.cpp [TableGen] Emit the correct error message. 2015-07-27 17:22:19 +00:00
StringMatcher.cpp
TableGenBackend.cpp
TGLexer.cpp
TGLexer.h
TGParser.cpp [TableGen] Change a couple methods to return an ArrayRef instead of a const std::vector reference. NFC 2015-07-06 06:23:01 +00:00
TGParser.h