vedantk·2 年前·議論Possibly not in the default c++ language mode, but check out -fwhole-program-vtables. It can be a useful option in cases where all relevant inheritance relationships are known at compile time.https://reviews.llvm.org/D16821
https://reviews.llvm.org/D16821