<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body 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<br>
<br>
<div class="moz-cite-prefix">On 15/12/2015 09:37, Eric Christopher
wrote:<br>
</div>
<blockquote
cite="mid:CALehDX7TKu43GkBPu1NLsvs+0hTR1buYHRHrpDNpdJwA=F3QYA@mail.gmail.com"
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">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>
<pre class="moz-signature" cols="72">--
irini</pre>
</body>
</html>