<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 10:27 AM, Matt Arsenault <span dir="ltr"><<a href="mailto:arsenm2@gmail.com" target="_blank">arsenm2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On Jul 30, 2015, at 4:55 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:</div><br><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Hey Duncan - what's this "extraData" field intended for? Is this a reasonable use of it?</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">I imagine we just want to extend the schema here to explicitly include address space?</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></div></blockquote><div><br></div></span><div>One thing I was worried about was whether we would want the address space for some of the other DW_TAG types that use extraData. Eventually we may want to be able to apply the address space to static members and the others (also I forgot to update the comment on getExtraData to include this new use) so a separate field is probably a good idea</div></div></div></blockquote><div><br></div><div>Yeah, in theory we'd just add a new field to those things too.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><br><blockquote type="cite"><div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Could we instead extract it from the value we're describing? (probably not? if the address happens to be a constant or something (which I guess is more likely in custom address spaces) it wouldn't be carrying explicit address space info?)</span></div></blockquote></span></div><br><div>This won’t work. The most common case for us are non-zero address space function arguments.</div></div></blockquote><div><br></div><div>Why would that be a problem for this idea? The function argument would have a pointer type with an associated non-zero address space & the debug info would point to that & we could consult the pointer type to see the address space, no?</div><div><br></div><div>But I'm OK with not doing it that way (happy to better understand why) & just make it a new field in the schema, etc, as above.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div> Ideally we wouldn’t ever use LLVM address space 0 for anything, although we can’t do that today. One problem I noticed here is this doesn’t seem to get applied in the case where a global is put in a different address space, when the address is sometimes constant.</div></div></blockquote></div><br></div></div>