<div dir="ltr">Hi,<div><br></div><div>Compiling for both x86 and ARM with llc aborts after this pass. </div><div>I have a simple helloworld.c program. </div><div><br></div><div>I am attaching the .ll file created by:</div>

<div><i>clang -O3 -g -emit-llvm hello.c -c -o hello.bc</i><br></div><div><i>llvm-dis hello.bc<br></i></div><div><i><br></i></div><div>Thanks again for the response!</div><div>Shruti</div></div><div class="gmail_extra"><br>

<br><div class="gmail_quote">On Mon, May 19, 2014 at 1:28 AM, Tobias Grosser <span dir="ltr"><<a href="mailto:tobias@grosser.es" target="_blank">tobias@grosser.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On 19/05/2014 00:54, shruti padmanabha wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Hi,<br>
<br>
Thanks for the pointer. I am unfortunately running into llc problems with<br>
this pass.<br>
I did<br></div>
*opt  -debug-ir   hello.bc -o hello.deb.bc*<br>
<br>
*llc -march=arm -debug  -O0 hello.deb.bc  -o hello.deb.s*<div class=""><br>
<br>
This is aborting with the error: llc:<br>
llvm-3.4/lib/CodeGen/<u></u>AsmPrinter/DwarfDebug.cpp:<u></u>1614: void<br>
llvm::DwarfDebug::<u></u>beginFunction(const llvm::MachineFunction*): 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>
</div></blockquote>
<br>
This is indeed surprising. I have no idea where this is coming from. Does this only happen on ARM? Can you attach the debug.bc file? Or even better, open a bug report for that?<br>
<br>
I included Daniel who committed the -debug-ir pass as well as Eric who has better knowledge about debug info than me.<br>
<br>
Cheers,<br>
Tobisa<br>
</blockquote></div><br></div>