<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Is this "work" heavier than enabling the debug mode?<br>
    <br>
    Nop. No XY question here. In fact it is just be more useful for me
    to have the information of line number but still be in release mode.
    <br>
    (if this is possible or in other words less "painful" for my pass)<br>
    <br>
    Thanks<br>
    <br>
    --irini<br>
    <br>
    <div class="moz-cite-prefix">On 15/12/15 17:07, mats petersson
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAL-htr5gaiPbAposbuj=kj5mvAqr-CkeVxtZa_jaYKYst+WHuA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>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>
            <br>
          </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>
          <br>
          --<br>
        </div>
        Mats<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 15 December 2015 at 10:28, Irini
          Stavrakantonaki via llvm-dev <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi Eric and thanks
              for your answer,<br>
              <br>
              What I mean is that I want to find the number of line on
              the IR code of a specific instruction.<br>
              I found out that I can use:<br>
              <br>
              <font face="Courier New, Courier, monospace">       
                DebugLoc Loc = CurrentInstruction->getDebugLoc();<br>
                        unsigned Line = Loc.getLine();</font><br>
              <br>
              But this works only if DEBUGFLAG is True.<br>
              I'd like to be able to get the Line number without being
              on a 'Debug' mode. Is this possible?<br>
              <br>
              Thanks again,<br>
              <br>
              -irini
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 15/12/2015 09:37, Eric Christopher wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">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><br>
                      </div>
                      <div>-eric</div>
                    </div>
                    <br>
                    <div class="gmail_quote">
                      <div dir="ltr">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">llvm-dev@lists.llvm.org</a>>

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