1

I have a piece of hand-written llvm assembly that I want to debug with lldb.

How do I make llc emit debugging information so that lldb could display the original llvm assembly instead of the native at&t-style assembly it's displaying at the moment?

1 Answer 1

2

There used to be a pass called DebugIR that would add debug info to LLVM IR, however it was removed in r222945. My guess is that it wasn't maintained properly and was bit-rotting. You could try revive it though!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.