<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 15, 2015, at 6:06 AM, Irini Stavrakantonaki via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Is this "work" heavier than enabling the debug mode?<br class="">
    <br class="">
    Nop. No XY question here.</div></div></blockquote><div><br class=""></div><div>I’ll add a “+1” to Mats. We don’t know *why* you want that, what is the problem you’re trying to solve?</div><div>(i.e. why do you want the line number).</div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div bgcolor="#FFFFFF" text="#000000" class=""> In fact it is just be more useful for me
    to have the information of line number but still be in release mode.
    <br class="">
    (if this is possible or in other words less "painful" for my pass)<br class="">
    <br class="">
    Thanks<br class="">
    <br class="">
    --irini<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 15/12/15 17:07, mats petersson
      wrote:<br class="">
    </div>
    <blockquote cite="mid:CAL-htr5gaiPbAposbuj=kj5mvAqr-CkeVxtZa_jaYKYst+WHuA@mail.gmail.com" type="cite" class="">
      <div dir="ltr" class="">
        <div class="">
          <div class="">Since there is extra "work" required to store that sort
            of infromation, I wouldn't want my compiler to do that
            unless I have specifically asked for it.<br class="">
            <br class="">
          </div>
          What is the actual problem you are trying to solve? I feel
          that you are asking an XY question (in other words, "I have
          problem X, I think solution is Y, so I ask how to do Y",
          rather than asking "how do I do X"). <br class="">
          <br class="">
          --<br class="">
        </div>
        Mats<br class="">
      </div>
      <div class="gmail_extra"><br class="">
        <div class="gmail_quote">On 15 December 2015 at 10:28, Irini
          Stavrakantonaki via llvm-dev <span dir="ltr" class=""><<a moz-do-not-send="true" href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span>
          wrote:<br class="">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000" class=""> Hi Eric and thanks
              for your answer,<br class="">
              <br class="">
              What I mean is that I want to find the number of line on
              the IR code of a specific instruction.<br class="">
              I found out that I can use:<br class="">
              <br class="">
              <font face="Courier New, Courier, monospace" class="">       
                DebugLoc Loc = CurrentInstruction->getDebugLoc();<br class="">
                        unsigned Line = Loc.getLine();</font><br class="">
              <br class="">
              But this works only if DEBUGFLAG is True.<br class="">
              I'd like to be able to get the Line number without being
              on a 'Debug' mode. Is this possible?<br class="">
              <br class="">
              Thanks again,<br class="">
              <br class="">
              -irini
              <div class="">
                <div class="h5"><br class="">
                  <br class="">
                  <div class="">On 15/12/2015 09:37, Eric Christopher wrote:<br class="">
                  </div>
                  <blockquote type="cite" class="">
                    <div dir="ltr" class="">Not sure what you mean, but the
                      answer is likely "no" as there's nothing for
                      anything to retrieve. Diagnostics inside the
                      compiler can usually get it from certain IR
                      constructs that have line information, but I'm not
                      sure if that's what you mean.
                      <div class=""><br class="">
                      </div>
                      <div class="">-eric</div>
                    </div>
                    <br class="">
                    <div class="gmail_quote">
                      <div dir="ltr" class="">On Mon, Dec 14, 2015 at 5:54 PM
                        Irini Stavrakantonaki via llvm-dev <<a moz-do-not-send="true" href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>>

                        wrote:<br class="">
                      </div>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">Hi list,<br class="">
                        <br class="">
                        Is it possible to retrieve the source/IR line
                        number<br class="">
                        without being on a debug mode?<br class="">
                        <br class="">
                        Thank you in advance,<br class="">
                        <br class="">
                        --<br class="">
                        irini<br class="">
                        <br class="">
                        _______________________________________________<br class="">
                        LLVM Developers mailing list<br class="">
                        <a moz-do-not-send="true" href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
                        <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
                      </blockquote>
                    </div>
                  </blockquote>
                  <br class="">
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888" class="">
                  <pre cols="72" class="">-- 
irini</pre>
                </font></span></div>
            <br class="">
            _______________________________________________<br class="">
            LLVM Developers mailing list<br class="">
            <a moz-do-not-send="true" href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
            <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
            <br class="">
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>