<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Hi, all<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Is there anyone who can address this question for me ? really appreciate ...<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 20, 2015 at 1:09 PM, Hui Zhang <span dir="ltr"><<a href="mailto:wayne.huizhang@gmail.com" target="_blank">wayne.huizhang@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 dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Hello,<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">I'm a little confused about the DIScopeRef ,or other names end with Ref...Why and when shall we use them ?<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Like StringRef, it has a function str() to change it to normal std::string, but DIScopeRef, its full definition is: <br><pre><span>typedef</span> <a href="http://llvm.org/docs/doxygen/html/classllvm_1_1DIRef.html" title="Represents reference to a DIDescriptor." target="_blank">DIRef<DIScope></a> <a href="http://llvm.org/docs/doxygen/html/namespacellvm.html#ad3fed63164a27d11963083c621293298" target="_blank">DIScopeRef</a><br></pre><pre>DIRef: Represents reference to a <a href="http://llvm.org/docs/doxygen/html/classllvm_1_1DIDescriptor.html" title="A thin wraper around MDNode to access encoded debug info." target="_blank">DIDescriptor</a>. abstracts over direct and identifier-based metadata references. <br clear="all"></pre></div><br><div class="gmail_default" style="font-family:georgia,serif;font-size:large">​Therefore, when I get a DIScopeRef dsf, shall I just treat it just like DIScope ? means I can directly call dsf.func(), where func() represents all the member functions of DIScope, right ??<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Thanks​</div><span class="HOEnZb"><font color="#888888"><br>-- <br><div>Best regards<br><br><br>Hui Zhang<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Best regards<br><br><br>Hui Zhang<br></div>
</div>