[all-commits] [llvm/llvm-project] 09c884: [lldb]/Tablegen] Use ElementType instead of Defaul...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Mar 20 18:41:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 09c8845adfd9e86a227d6413d57b462d8566d399
      https://github.com/llvm/llvm-project/commit/09c8845adfd9e86a227d6413d57b462d8566d399
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M lldb/include/lldb/Core/PropertiesBase.td
    M lldb/source/Target/TargetProperties.td
    M lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp

  Log Message:
  -----------
  [lldb]/Tablegen] Use ElementType instead of DefaultValueUnsinged

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">.

Differential revision: https://reviews.llvm.org/D76535




More information about the All-commits mailing list