Bogdan Alexandru Stoica via llvm-dev
2016-Jul-01 10:07 UTC
[llvm-dev] Match LLVM IR back to assembly
Hi all, I am trying to write a pass which matches LLVM IR back to assembly in order to track PCs corresponding to certain LLVM IR instructions on an x86-64 machine. LLVM's debug-ir options is/was doing exactly this, but on older versions (i.e. pre-3.6) it crashes while on newer versions it has been deprecated. I've recently tried debug-ir with 3.4 and 3.5, but this assert fails: llc: llvm-3.4/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1614: void llvm::DwarfDebug::beginFunction(const llvm::MachineFunction*): Assertion `TheCU && "Unable to find compile unit!"' failed There is a previous discussion on this, yet no fix: https://groups.google.com/forum/#!topic/llvm-dev/Oawy2-_lqCU Any tips for how to solve this would be greatly appreciated. Thank you, -Bogdan. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160701/24e0d55f/attachment-0001.html>