aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/SourceCodeTest.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2020-04-06 16:08:58 -0700
committerLeonard Chan <leonardchan@google.com>2020-11-30 10:50:05 -0800
commit61aec69a65dec949f3d2556c4d0efaa87869e1ee (patch)
tree2f81c51a28509490a0ee1d69f6cfa0a775ac1558 /clang/unittests/Tooling/SourceCodeTest.cpp
parente425d0b92a1df69e5e41e6b23801fabeaaef7937 (diff)
downloadllvm-61aec69a65dec949f3d2556c4d0efaa87869e1ee.zip
llvm-61aec69a65dec949f3d2556c4d0efaa87869e1ee.tar.gz
llvm-61aec69a65dec949f3d2556c4d0efaa87869e1ee.tar.bz2
[libcxxabi] Add macro for changing functions to support the relative vtables ABI
Under the relative vtables ABI, __dynamic_cast will not work since it assumes the vtable pointer is 2 ptrdiff_ts away from the start of the vtable (8-byte offset to top + 8-byte pointer to typeinfo) when it is actually 8 bytes away (4-byte offset to top + 4-byte offset to typeinfo). This adjusts the logic under __dynamic_cast and other areas vtable calculations are done to support this ABI when it's used. Differential Revision: https://reviews.llvm.org/D77606
Diffstat (limited to 'clang/unittests/Tooling/SourceCodeTest.cpp')
0 files changed, 0 insertions, 0 deletions