<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 7:08 AM, Muneeb Khan <span dir="ltr"><<a href="mailto:muneeb.khan@it.uu.se" target="_blank">muneeb.khan@it.uu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div>I am using the -debug-ir pass in LLVM-3.5 opt tool to map binary information back to the IR instead of the source files.</div><div>I use the opt tool to generate a .ll file. But when I run the llc tool on it to generate an assembly (or object) file, it gives me the following warning</div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">warning: ignoring debug info with an invalid version (0) in </div></div></div></blockquote><div><br>Are you using opt and llc from the same LLVM version? (mixing and matching could produce this problem)<br><br>Or possibly debug-ir was never updated to produce the dubug info version - Adrian?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div>How can I use the debug-ir functionality to achieve a mapping from the binary to the IR?</div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br><div><span style="border-collapse:separate;border-spacing:0px">Muneeb Khan<br>PhD student<br>Department of Information Technology,<br>Uppsala University,<br>Sweden<br>Tel: <a href="tel:%2B46%2018%20-%20471%201049" value="+46184711049" target="_blank">+46 18 - 471 1049</a><br><br><br></span>
</div>
<br></div></font></span></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div></div>