[PATCH] LLC: Enable debug information in MMI when using the stop-after option.

Alex L via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 18:13:36 PDT 2015


2015-08-18 17:43 GMT-07:00 Duncan P. N. Exon Smith <dexonsmith at apple.com>:

>
> > On 2015-Aug-18, at 17:22, Alex L <arphaman at gmail.com> wrote:
> >
> > Sorry, I forgot to attach a patch,
> > Here it is:
> >
> > 2015-08-18 17:21 GMT-07:00 Alex L <arphaman at gmail.com>:
> > Hi,
> >
> > This patch ensures that the machine module information class sets the
> availability of the debug information to true when using llc with the
> 'stop-after' option.
> >
> > Thanks,
> > Alex
> >
> > <0001-LLC-Enable-debug-information-in-MMI-when-using-the-s.patch>
>
> I don't really understand the context.  What does
> `setDebugInfoAvailability()` have to do with -stop-after?


When llc runs with the stop-after option, MMI's 'DbgInfoAvailable' flag is
always false as the LLVMTargetMachine never creates the assembly output
streamer, and thus the code in 'AsmPrinter/DwarfDebug.cpp' that calls
'setDebugInfoAvailability(true)' is never executed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150818/5e3bcccc/attachment.html>


More information about the llvm-commits mailing list