<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class="im"><br>
> Any ideas how we can make these types of debug info tests<br>
> more understandable to future devs? My only idea is copious comments, but I<br>
> feel like having some self-documenting system would be better and I just<br>
> don't have any good ideas about what it would look like.<br>
<br>
</div>Yeah, I'm not sure what it would look like - essentially the test<br>
would have to reference constants from LLVM to describe the flags<br>
combined into the flags field. (&, better than that, the ability to<br>
specify just some part of the flags value that is of interest to a<br>
particular test)<br>
<br>
Probably just adding comments of the form:<br>
<br>
; test that the flags represent the 'protected' access modifier<br>
; 258 (flags) = 42 (thing1) | 157 (thing2) | (protected) 8<br>
<br>
(I haven't actually looked up what constants are combined into the<br>
flags value in this case)</blockquote><div><br></div><div style>That would work, an option for more self-documentation would be to have the</div><div style>debug output (e.g. [ DW_TAG_class_type ]) contain the access specifiers.</div>
<div style><br></div><div style>-eric</div></div></div></div>