aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2020-05-11 09:38:29 -0700
committerHongtao Yu <hoy@fb.com>2020-05-11 10:00:14 -0700
commit47c1f2741fe7d24e02c3f54bcb723994292c54c3 (patch)
tree642b9daafdaaa50b3e3329aa886eada0718365f9 /clang/lib/Frontend/CompilerInvocation.cpp
parentf807d0b4acdb70c5a15919f6e9b02d8b212d1088 (diff)
downloadllvm-47c1f2741fe7d24e02c3f54bcb723994292c54c3.zip
llvm-47c1f2741fe7d24e02c3f54bcb723994292c54c3.tar.gz
llvm-47c1f2741fe7d24e02c3f54bcb723994292c54c3.tar.bz2
Properly add out-of-module functions to the import list
This patch addresses two issues related to adding inline functions to the import list while recursively going through the profiling data. 1. For callsite samples, only add an inlined function to the import list if it's from outside of the module (i.e. only has a declaration inside the module). 2. For body samples, add each target function to the import list if it's from outside of the module (i.e. only has a declaration inside the module). Previously we were using getSubProgram() to check whether it has dbg info, which is inaccurate. This fix properly add imports and could improve the quality of the pass. Added a few changes to the test to catch these cases. Differential Revision: https://reviews.llvm.org/D79379
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions