summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/Quality.cpp
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-06-05 17:19:21 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-06-05 17:19:21 +0000
commita642f8f343971430bf6d7dc354cfe9de85c418da (patch)
tree11b76b5ba990736779c77bf7089031e6e5bf7f3d /clang-tools-extra/clangd/Quality.cpp
parenta9a6d54146f83d2c0354dcf61f5919bfedcc0a99 (diff)
downloadbcm5719-llvm-a642f8f343971430bf6d7dc354cfe9de85c418da.tar.gz
bcm5719-llvm-a642f8f343971430bf6d7dc354cfe9de85c418da.zip
PDB support of function-level linking and splitted functions
Summary: The patch adds support of splitted functions (when MSVC is used with PGO) and function-level linking feature. SymbolFilePDB::ParseCompileUnitLineTable function relies on fact that ranges of compiled source files in the binary are continuous and don't intersect each other. The function creates LineSequence for each file and inserts it into LineTable, and implementation of last one relies on continuity of the sequence. But it's not always true when function-level linking enabled, e.g. in added input test file test-pdb-function-level-linking.exe there is xstring's std__basic_string_char_std__char_traits_char__std__allocator_char_____max_size (.00454820) between test-pdb-function-level-linking.cpp's foo (.00454770) and main (.004548F0). To fix the problem this patch renews the sequence on each address gap. Reviewers: asmith, zturner Reviewed By: asmith Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D47708 llvm-svn: 334030
Diffstat (limited to 'clang-tools-extra/clangd/Quality.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud