diff options
author | Daniel Paoliello <danpao@microsoft.com> | 2023-09-06 09:58:39 -0700 |
---|---|---|
committer | Daniel Paoliello <danpao@microsoft.com> | 2023-09-06 10:19:30 -0700 |
commit | f2f36c9b2955d2d742a198416f1178fd80303921 (patch) | |
tree | 121e444908ff48f54ee8b60d661258a3b8410dfa /clang/lib/Basic/SourceManager.cpp | |
parent | c39edd7b5312be0d5156f42bd2fef48b8435c91b (diff) | |
download | llvm-f2f36c9b2955d2d742a198416f1178fd80303921.zip llvm-f2f36c9b2955d2d742a198416f1178fd80303921.tar.gz llvm-f2f36c9b2955d2d742a198416f1178fd80303921.tar.bz2 |
Emit line numbers in CodeView for trailing (after `ret`) blocks from inlined functions
Issue Details:
When building up line information for CodeView debug info, LLVM attempts to gather the "range" of instructions within a function as these are printed together in a single record. If there is an inlined function, then those lines are attributed to the original function to enable generating `S_INLINESITE` records. However, this thus requires there to be instructions from the inlining function after the inlined function otherwise the instruction range would not include the inlined function.
Fix Details:
Include any inlined functions when finding the extent of a function in `getFunctionLineEntries`
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D159226
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions