<div dir="ltr">Oh, okay. <div>Which was the last version of llc that worked with the pass? I could try working with an older version that is compatible. <br></div><div><br></div><div>Is there something else I can hack up to serve my purpose of mapping assembly -> IR instructions? </div>

<div><br></div><div>Thanks for the help!</div><div>Shruti</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 11:24 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Interesting. My guess is that the debug-ir pass wasn't updated when we<br>
changed some version of the debug metadata and so isn't producing good<br>
metadata.<br>
<br>
I'm not sure when I'll get to updating it though and it looks like<br>
Daniel's address is bouncing.<br>
<span class="HOEnZb"><font color="#888888"><br>
-eric<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, May 19, 2014 at 8:22 AM, shruti padmanabha <<a href="mailto:shrupad@umich.edu">shrupad@umich.edu</a>> wrote:<br>
> No. They're both from the 3.4 version of llvm.<br>
> Thanks,<br>
> Shruti<br>
><br>
><br>
> On Mon, May 19, 2014 at 11:01 AM, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Sun, May 18, 2014 at 10:28 PM, Tobias Grosser <<a href="mailto:tobias@grosser.es">tobias@grosser.es</a>><br>
>> wrote:<br>
>> > On 19/05/2014 00:54, shruti padmanabha wrote:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> Thanks for the pointer. I am unfortunately running into llc problems<br>
>> >> with<br>
>> >> this pass.<br>
>> >> I did<br>
>> >> *opt  -debug-ir   hello.bc -o hello.deb.bc*<br>
>> >><br>
>> >> *llc -march=arm -debug  -O0 hello.deb.bc  -o hello.deb.s*<br>
>> >><br>
>> >><br>
>> >> This is aborting with the error: llc:<br>
>> >> llvm-3.4/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1614: void<br>
>> >> llvm::DwarfDebug::beginFunction(const llvm::MachineFunction*):<br>
>> >> Assertion<br>
>> >> `TheCU && "Unable to find compile unit!"' failed.<br>
>> >> I'm assuming this is because llc found some errors in the metadata that<br>
>> >> debug-ir prints out. How do I find and correct this?<br>
>> ><br>
>> ><br>
>> > This is indeed surprising. I have no idea where this is coming from.<br>
>> > Does<br>
>> > this only happen on ARM? Can you attach the debug.bc file? Or even<br>
>> > better,<br>
>> > open a bug report for that?<br>
>> ><br>
>> > I included Daniel who committed the -debug-ir pass as well as Eric who<br>
>> > has<br>
>> > better knowledge about debug info than me.<br>
>> ><br>
>><br>
>> Are you mixing versions of llc and opt? I.e. are they both built from<br>
>> the same version?<br>
>><br>
>> -eric<br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Shruti Padmanabha<div>University of Michigan, Ann Arbor</div></div>
</div>