search for: maprequir

Displaying 3 results from an estimated 3 matches for "maprequir".

Did you mean: maprequired
2013 Mar 11
0
[LLVMdev] YAML IO problems
...bool boolTest; llvm::StringRef directory; llvm::StringRef suffix; int32_t intTest; }; typedef std::vector<FooBar> FooBarSequence; namespace llvm { namespace yaml { template <> struct MappingTraits<FooBar> { static void mapping(IO &io, FooBar& fb) { io.mapRequired("bool_test", fb.boolTest); io.mapRequired("directory", fb.directory); io.mapRequired("suffix", fb.suffix); io.mapRequired("int_test", fb.intTest); struct FooBar { bool boolTest; llvm::StringRef directory; llvm::StringRef suffix;...
2020 May 22
2
RFC: Add DWARF support for yaml2obj
Hi Pavel, Thanks for your comments! On 5/21/20, Pavel Labath <pavel at labath.sk> wrote: > Hello Xing, > > I think the proposal looks very useful. I think it will be fairly tricky > to get all of the details right though. There is a lot of "inferring" > going on there, and getting that to work reliably and with predictable > results will need careful
2020 May 22
2
RFC: Add DWARF support for yaml2obj
...to same field? > > > > """ > > - Attr: DW_AT_decl_file > > Str: foo > > """ > Yes, that is definitely possible. You just need to make the map calls > conditional on the values of other attributes. Maybe something like this: > IO.mapRequired("Attr", Attr); > IO.mapOptional("Form", Form, getDefaultForm(Attr, Ctx.isSplitDwarf() > /*or whatever*/)); > switch (getFormClass(Form)) { > /* The cases could correspond to DWARF5 form classes, but maybe not > completely.*/ > case String: IO.mapRequired(&quo...