]> granicus.if.org Git - clang/commit
[codeview] Extend the heuristic for detecting classes imported from DLLs
authorReid Kleckner <rnk@google.com>
Fri, 9 Sep 2016 16:27:04 +0000 (16:27 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 9 Sep 2016 16:27:04 +0000 (16:27 +0000)
commit23343959a1e5b770cb00983c293aad4e4d64f797
tree5bfb4d0a9fd82540bcae2b0b4f33f650d3263ed4
parent63e9d0e4b7ea9b5c1cba52095d1cc0c92cb7256c
[codeview] Extend the heuristic for detecting classes imported from DLLs

If a dynamic class contains a dllimport method, then assume the class
may not be constructed in this DLL, and therefore the vtable will live
in a different PDB.

This heuristic is still incomplete, and will miss things like abstract
base classes that are only constructed on one side of the DLL interface.
That said, this heuristic does detect some cases that are currently
problematic, and may be useful to other projects that don't use many
DLLs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-dllimport-base-class.cpp