This is an archive of the discontinued LLVM Phabricator instance.

[lldb]/Tablegen] Use ElementType instead of DefaultValueUnsinged for Array and Dictionary
ClosedPublic

Authored by JDevlieghere on Mar 20 2020, 4:42 PM.

Details

Summary

The fourth field in the property struct is the default unsigned or enum value for all types, except for Array and Dictionary types. For those, it is the element type. During the tablegen conversion, this was incorrectly translated to DefaultValueUnsigned with a value corresponding to the OptionValue: enum type. So for OptionValue::eTypeString this became DefaultUnsignedValue<16>. This patch extends the tablegen backend to understand ElementType to express this as ElementType<"String">.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

JDevlieghere created this revision.Mar 20 2020, 4:42 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 20 2020, 6:59 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2020, 6:59 PM