[PATCH] D28877: Move vtable type metadata emission behind a cc1-level flag.

Peter Collingbourne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 18 15:56:42 PST 2017


pcc created this revision.

In ThinLTO mode, type metadata will require the module to be written as a
multi-module bitcode file, which is currently incompatible with the Darwin
linker. It is also useful to be able to enable or disable multi-module bitcode
for testing purposes. This introduces a cc1-level flag, -f{,no-}lto-unit,
which is used by the driver to enable multi-module bitcode on all but
Darwin+ThinLTO, and can also be used to enable/disable the feature manually.


https://reviews.llvm.org/D28877

Files:
  clang/include/clang/Driver/CC1Options.td
  clang/include/clang/Frontend/CodeGenOptions.def
  clang/lib/CodeGen/CGVTables.cpp
  clang/lib/CodeGen/MicrosoftCXXABI.cpp
  clang/lib/Driver/Tools.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/CodeGenCXX/cfi-ms-rtti.cpp
  clang/test/CodeGenCXX/no-lto-unit.cpp
  clang/test/CodeGenCXX/type-metadata.cpp
  clang/test/Driver/lto-unit.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28877.84900.patch
Type: text/x-patch
Size: 10627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170118/6c5734e4/attachment.bin>


More information about the cfe-commits mailing list