<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Have you tried passing -debug?<div><br><div><div>On Mar 12, 2014, at 3:57 AM, 徐偉哲 <<a href="mailto:daniel60602@gmail.com">daniel60602@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>I can generate debug info using opt like this:</div><div>opt < a.bc > /dev/null -mypass -debug</div><div><br></div><div>But I don't know how to do it using llc.</div><div>I check <a href="http://llvm.org/docs/CommandGuide/llc.html">http://llvm.org/docs/CommandGuide/llc.html</a></div>
<div>there are not any information about debug flags.</div><div><br></div><div>Purpose</div><div>EX:</div><div>I want to print all the DEBUG(dbgs()......) in llvm/lib/CodeGen/RegAllocGreedy.cpp .</div><div>What should I do?</div>
<div><br></div></div>
_______________________________________________<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">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></body></html>