[LLVMdev] using -debug-ir to map identify IR mapping
Muneeb Khan
muneeb.khan at it.uu.se
Wed Oct 15 08:20:48 PDT 2014
Yes, I am using opt and llc from the same version (3.5).
I know that there were issues with debug-ir in 3.4. I have explored the source tree myself for 3.5 and I know that the pass -debug-ir does kick in with opt.
But I have no clue of what happens with the debug information in (and after) the llc pass.
/Muneeb
On 15 Oct 2014, at 17:14, David Blaikie <dblaikie at gmail.com> wrote:
>
>
> On Wed, Oct 15, 2014 at 7:08 AM, Muneeb Khan <muneeb.khan at it.uu.se> wrote:
> Hi,
> 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.
> 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
>
> warning: ignoring debug info with an invalid version (0) in
>
> Are you using opt and llc from the same LLVM version? (mixing and matching could produce this problem)
>
> Or possibly debug-ir was never updated to produce the dubug info version - Adrian?
>
>
> How can I use the debug-ir functionality to achieve a mapping from the binary to the IR?
> Thanks!
>
> Muneeb Khan
> PhD student
> Department of Information Technology,
> Uppsala University,
> Sweden
> Tel: +46 18 - 471 1049
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
Muneeb Khan
PhD student
Department of Information Technology,
Uppsala University,
Sweden
Tel: +46 18 - 471 1049
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141015/16a7ee84/attachment.html>
More information about the llvm-dev
mailing list