[LLVMdev] Checking validity of metadata in an .ll file

Seb babslachem at gmail.com
Mon Jan 2 05:42:19 PST 2012


Hi Devang,

Thanks for the answer, I eventually found that in  DW_TAG_compile_unit
metadata, if field for 'main' compile unit is set to false then no debug
info is generated. Can someone explain what is the meaning of this field ?

You wrote:

"Right now there is no such check. In fact, 'llc' is trained to silently
ignore malformed debug information, because 'opt' is not held reliable to
maintain debug info. That said, it would be valuable to write such
verification pass."

Does this means that after opt metadata are not reliable at all ?

Best Regards
Seb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120102/0cfd1e0f/attachment.html>


More information about the llvm-dev mailing list