Alberto Barbaro via llvm-dev
2019-Nov-08 14:58 UTC
[llvm-dev] How to avoid or remove llvm.dbg.value?
Hi all, Is there any way for avoiding to use llvm.dbg.value within a bc file? If not, once I have the bc how can I remove all the occurrences? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191108/d1b4a25a/attachment.html>
Tim Northover via llvm-dev
2019-Nov-08 15:05 UTC
[llvm-dev] How to avoid or remove llvm.dbg.value?
Hi Alberto, On Fri, 8 Nov 2019 at 06:59, Alberto Barbaro via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Is there any way for avoiding to use llvm.dbg.value within a bc file?They're part of LLVM's representation of debugging information (as you may have guessed). So if compiling with Clang you can just not pass -g and you won't get any (or override with -g0 if your build system already adds -g and it's inconvenient to avoid that). Other front-ends will have similar options I expect.> If not, once I have the bc how can I remove all the occurrences?You can run "opt -strip-debug" will remove it in that situation. Cheers. Tim.
Alberto Barbaro via llvm-dev
2019-Nov-08 15:09 UTC
[llvm-dev] How to avoid or remove llvm.dbg.value?
Hi Tim, Thank you very much for the message. It indeed solved the problem. Thanks On Fri, Nov 8, 2019, 15:05 Tim Northover <t.p.northover at gmail.com> wrote:> Hi Alberto, > > On Fri, 8 Nov 2019 at 06:59, Alberto Barbaro via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > Is there any way for avoiding to use llvm.dbg.value within a bc file? > > They're part of LLVM's representation of debugging information (as you > may have guessed). So if compiling with Clang you can just not pass -g > and you won't get any (or override with -g0 if your build system > already adds -g and it's inconvenient to avoid that). Other front-ends > will have similar options I expect. > > > If not, once I have the bc how can I remove all the occurrences? > > You can run "opt -strip-debug" will remove it in that situation. > > Cheers. > > Tim. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191108/041646ab/attachment.html>