aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorEllis Hoag <ellishoag@fb.com>2021-12-13 22:03:23 -0800
committerEllis Hoag <ellis.sparky.hoag@gmail.com>2021-12-14 09:28:22 -0800
commit0005efd455c490d72a3c927edf4f9bd293dfbde2 (patch)
treed5e2544c9adf4a4d7ac9acaf9f7a1f4461e70189 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent3bc08d8b8d7a0c0de7b96b0f6f7903125290f162 (diff)
downloadllvm-0005efd455c490d72a3c927edf4f9bd293dfbde2.zip
llvm-0005efd455c490d72a3c927edf4f9bd293dfbde2.tar.gz
llvm-0005efd455c490d72a3c927edf4f9bd293dfbde2.tar.bz2
[DebugInfo][dsymutil] Keep locations for function-local globals
In debug info, we expect variables to have location info if they are used and we don't want location info for functions that are not used. However, if an unused function is inlined, we could have the scenario where a function is not in the final binary but its static variable is in the final binary. Ensure that variables in the final binary have location debug info even if their scope was inlined. Also add `--implicit-check-not` to a test for clarity. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D115565
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions