[PATCH] D83468: [Debuginfo] Fix for PR46653

Jaydeep Chauhan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 03:40:38 PDT 2020


Jac1494 added a comment.

Hi @aprantl , Thank you for reply.

> Can you post the output of llvm-dwarfdump --debug-line before and after the patch?

  Test.c:-
  ====
  int var1;           // 1
  int var2;           // 2
  int main() {        // 3
    if (var1 == 1) {  // 4
      var2 = 2;       // 5
    }                 // 6
    return 0;         // 7
  }
  
  Before patch:-
  =============
  
  Address            Line   Column File   ISA Discriminator Flags
  ------------------ ------ ------ ------ --- ------------- -------------
  0x0000000000000000      3      0      1   0             0  is_stmt
  0x0000000000000008      0      0      1   0             0  is_stmt prologue_end
  0x000000000000000c      4      7      1   0             0  is_stmt
  0x0000000000000010      4      7      1   0             0
  0x0000000000000018      0      0      1   0             0
  0x0000000000000020      5     10      1   0             0  is_stmt
  0x0000000000000024      0     10      1   0             0
  0x0000000000000028      7      3      1   0             0  is_stmt
  0x0000000000000034      7      3      1   0             0  is_stmt end_sequence
  
  After patch:-
  =============
  Address            Line   Column File   ISA Discriminator Flags
  ------------------ ------ ------ ------ --- ------------- -------------
  0x0000000000000000      3      0      1   0             0  is_stmt
  0x000000000000000c      4      7      1   0             0  is_stmt prologue_end
  0x0000000000000010      4      7      1   0             0
  0x0000000000000018      0      7      1   0             0
  0x0000000000000020      5     10      1   0             0  is_stmt
  0x0000000000000024      0     10      1   0             0
  0x0000000000000028      7      3      1   0             0  is_stmt
  0x0000000000000034      7      3      1   0             0  is_stmt end_sequence


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83468/new/

https://reviews.llvm.org/D83468





More information about the llvm-commits mailing list