[LLVMdev] Debug info not preserved by llvm-as (LLParser)?
David Blaikie
dblaikie at gmail.com
Mon Feb 2 15:53:26 PST 2015
(oops, dropped the ML by accident)
On Mon, Feb 2, 2015 at 3:53 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
> On Mon, Feb 2, 2015 at 3:46 PM, Peter Zion <Peter.Zion at fabricengine.com>
> wrote:
>
>> Hi there,
>>
>> If I run:
>>
>> clang -S -emit-llvm -o - -g test.c
>>
>> for a trivial test.c I see debug info in the IR as expected. However,
>> if I run:
>>
>> clang -S -emit-llvm -o - -g test.c | llvm-as | llvm-dis
>>
>
> Are you using matching (built from the exact same revision) versions of
> clang, llvm-as, and llvm-dis?
>
>
>>
>> the debug info is stripped. Is this intentional? If so, is there a
>> way to force the debug metadata to make its way through the pipeline? This
>> is on either LLVM 3.5 or LLVM 3.4.
>>
>> This has come up for me because I was hoping to provide IR in place of
>> source code in a certain part of our application and while it works any
>> unit tests that rely on debug info are broken. Tracking down the issue let
>> me to this.
>>
>> Peter Zion
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150202/36069773/attachment.html>
More information about the llvm-dev
mailing list