<div dir="ltr">any chance to get an opinion for this?</div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2016 at 01:31, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</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">I’ve been in need of a cl::opt to control this behavior and force preserving debug info, it would be useful for testing at least. That wouldn’t be a "first class” API though.<div><br></div><div>CC Adrian for his opinion.</div><div><br></div><div>— </div><div>Mehdi</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Nov 24, 2016, at 2:25 PM, Dmitriy Matveev via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="m_-1834723314497331311Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>Sometimes <a href="http://llvm.org/docs/doxygen/html/namespacellvm.html#ad3c29183c5faa7f5a352807af8aca268" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-size:15px;color:rgb(0,89,153);text-decoration:none;font-family:arial,"helvetica neue",helvetica,sans-serif" target="_blank">llvm::<wbr>UpgradeDebugInfo</a> drops debug info which is pretty compatible with recent llvm version ( <a href="http://stackoverflow.com/questions/27023713/missing-debug-metadata-in-llvm-after-xcode-update" target="_blank">http://stackoverflow.com/<wbr>questions/27023713/missing-<wbr>debug-metadata-in-llvm-after-<wbr>xcode-update</a> ) and sometimes it drops something really outdated, but acceptable for me. In both cases I want to keep it, but AFAIK there is no API for this.</div><div><br></div><div>I've tried to strip libLLVMCore from that method and it forked for me just fine, but something has changed in llvm 3.9 and now I can't link with against hacked libLLVMCore. ( <a href="https://travis-ci.org/okutane/sanity/jobs/169662912" target="_blank">https://travis-ci.org/<wbr>okutane/sanity/jobs/169662912</a> line 979 )</div><div><br></div><div>What can I do? The best solution for me would be "configuration" of how <span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">LLVMParseIRInContext deals with "outdated" debug info, but I'm open to any workarounds. :D</span></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">Best regards, Dmitry.</span></div></div></div></div>
______________________________<wbr>_________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>