[clang][Driver] Expose -fexperimental-relative-c++-abi-vtables flag
authorLeonard Chan <leonardchan@google.com>
Thu, 11 Mar 2021 00:27:26 +0000 (16:27 -0800)
committerLeonard Chan <leonardchan@google.com>
Thu, 11 Mar 2021 00:28:40 +0000 (16:28 -0800)
commit70af0bf6fe462cc16a2e56657d20eeed126d41d0
treeebf146b55c7dbb8d2e8aad7ee356098aa23ca224
parentaf4ae18319abbcae39ca6d5a8c2baaecef01dcfa
[clang][Driver] Expose -fexperimental-relative-c++-abi-vtables flag

Initially, this flag was meant to only be used through cc1 and not directly
through the clang driver. However, we accidentally ended up using this flag
as a driver flag already for selecting multilibs within the fuchsia toolchain.
We're currently in an awkward state where it's only accepted as a driver flag
when targeting Fuchsia, and all other instances it can only be added via
-Xclang. Since we're ready to use this in Fuchsia, we can just expose this to
the driver for simplicity.

Differential Revision: https://reviews.llvm.org/D98375
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/relative-vtables-flag.cpp [new file with mode: 0644]