<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I see your point. But my issue here is just to have this #Line
information (nothing more)<br>
Since, as you said, there is a way to do it and still not enable
debug mode ...I would like to try it and see if I can get any
benefit <br>
<br>
--<br>
irini<br>
<br>
<div class="moz-cite-prefix">On 15/12/15 18:21, mats petersson
wrote:<br>
</div>
<blockquote
cite="mid:CAL-htr6zGovZAw0NPVpn3NX4LA=Zuwa-ukHfsf0kv3Hu9ERCdQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>My point as enabling debug mode is what causes this data
to be collected and stored. Since there is more work than
"nothing", it is not enabled when doing release builds of
the compiler. Debug mode may enable a few other things too,
but essentially, it's purpse in life [as far as I
understand] is to provide store and allow retrieval of debug
information.<br>
<br>
</div>
And my point was "why do you need to know line-number
information", when you are compiling in release? Seems like
you need something that you shouldn't need, hence me (still)
thinking it's an XY question.<br>
<br>
--<br>
</div>
Mats<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 15 December 2015 at 16:06, Irini
Stavrakantonaki <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:istavrak@ics.forth.gr" target="_blank">istavrak@ics.forth.gr</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"> 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<span class="HOEnZb"><font color="#888888"><br>
<br>
--irini</font></span>
<div>
<div class="h5"><br>
<br>
<div>On 15/12/15 17:07, mats petersson wrote:<br>
</div>
<blockquote 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><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><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"
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>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>