<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 class=""><span class="">typedef</span> <a class="" href="http://llvm.org/docs/doxygen/html/classllvm_1_1DIRef.html" title="Represents reference to a DIDescriptor.">DIRef<DIScope></a> <a class="" href="http://llvm.org/docs/doxygen/html/namespacellvm.html#ad3fed63164a27d11963083c621293298">DIScopeRef</a><br></pre><pre class="">DIRef: Represents reference to a <a class="" href="http://llvm.org/docs/doxygen/html/classllvm_1_1DIDescriptor.html" title="A thin wraper around MDNode to access encoded debug info.">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><br>-- <br><div class="gmail_signature">Best regards<br><br><br>Hui Zhang<br></div>
</div>