diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-01-16 23:26:29 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-01-16 23:26:29 +0000 |
commit | 669edb5ce5fe5b71e9850e420126c2ef50499dcd (patch) | |
tree | de322c30eb240b8568a94ac492fb853953de1580 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py | |
parent | 03391514449d804f0160300472cfb8a6f104ff7c (diff) | |
download | bcm5719-llvm-669edb5ce5fe5b71e9850e420126c2ef50499dcd.tar.gz bcm5719-llvm-669edb5ce5fe5b71e9850e420126c2ef50499dcd.zip |
[AsmPrinter] Collapse .loc 0 0 directives
Currently we do not always collapse subsequent .loc 0 0 directives. The
reason is that we were checking for a PrevInstLoc which is not set when
we emit a line-0 record. We should only check the LastAsmLine, which
seems to be created exactly for this purpose.
// When we emit a line-0 record, we don't update PrevInstLoc; so look at
// the last line number actually emitted, to see if it was line 0.
unsigned LastAsmLine =
Asm->OutStreamer->getContext().getCurrentDwarfLoc().getLine();
Differential revision: https://reviews.llvm.org/D56767
llvm-svn: 351395
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py')
0 files changed, 0 insertions, 0 deletions