[PATCH] D24180: Emit 'no line' information for interesting 'orphan' instructions

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 11:08:21 PDT 2016


rnk added a comment.

I don't know if you have the time or interest in doing this, but here's how I'd test the codeview side.

First, compile something like a main function with ~5 volatile stores to a .s file with `clang -g -gcodeview foo.c -o foo.s`. Manually insert nops and .cv_loc directives in between the stores. Assemble it and link it into a complete program with clang. Run `windbg -Q foo.exe`, break on foo!main, and step by line from there and see what happens.

Once we do that, then we can know what NeverStepIntoLineNumber really does. Right now, I have no idea what it does, and without some information about that, I'd rather not record anything for these kinds of instructions so that we can have more compact line tables.


https://reviews.llvm.org/D24180





More information about the llvm-commits mailing list