diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-02-02 19:22:34 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-02 19:22:34 +0000 |
commit | c9911f28e5a8060a439aa475e0a95793b1b1e970 (patch) | |
tree | 1292f7b899d8f09ff4c194fea492b3b7ff8ecd6c /llvm/test/MC/COFF/cv-inline-linetable.s | |
parent | e5737f7cacd925aabc3b0d079928d43a4dfdc4a3 (diff) | |
download | bcm5719-llvm-c9911f28e5a8060a439aa475e0a95793b1b1e970.tar.gz bcm5719-llvm-c9911f28e5a8060a439aa475e0a95793b1b1e970.zip |
[codeview] Correctly handle inlining functions post-dominated by unreachable
CodeView requires us to accurately describe the extent of the inlined
code. We did this by grabbing the next debug location in source order
and using *that* to denote where we stopped inlining. However, this is
not sufficient or correct in instances where there is no next debug
location or the next debug location belongs to the start of another
function.
To get this correct, use the end symbol of the function to denote the
last possible place the inlining could have stopped at.
llvm-svn: 259548
Diffstat (limited to 'llvm/test/MC/COFF/cv-inline-linetable.s')
-rw-r--r-- | llvm/test/MC/COFF/cv-inline-linetable.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/MC/COFF/cv-inline-linetable.s b/llvm/test/MC/COFF/cv-inline-linetable.s index 222a0859db5..22aa48f8bc8 100644 --- a/llvm/test/MC/COFF/cv-inline-linetable.s +++ b/llvm/test/MC/COFF/cv-inline-linetable.s @@ -84,7 +84,7 @@ Ltmp3: Ltmp4: .short 4429 .asciz "\000\000\000\000\000\000\000\000\003\020\000" - .cv_inline_linetable 1 1 9 Lfunc_begin0 contains 2 + .cv_inline_linetable 1 1 9 Lfunc_begin0 Lfunc_end0 contains 2 # CHECK: InlineSite { # CHECK: PtrParent: 0x0 # CHECK: PtrEnd: 0x0 @@ -105,7 +105,7 @@ Ltmp5: Ltmp6: .short 4429 .asciz "\000\000\000\000\000\000\000\000\004\020\000" - .cv_inline_linetable 2 1 3 Lfunc_begin0 + .cv_inline_linetable 2 1 3 Lfunc_begin0 Lfunc_end0 # CHECK: InlineSite { # CHECK: PtrParent: 0x0 # CHECK: PtrEnd: 0x0 |