diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-01-18 23:55:27 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-01-18 23:55:27 +0000 |
commit | 1e1475ace580ef52a80b56376780259cfb4edd51 (patch) | |
tree | c268d7bd86ae1a61b543580db5465f703eabced4 /clang/lib/CodeGen/CGVTables.cpp | |
parent | 0a2174533e1743446a59625ca318c424bfaf0bf2 (diff) | |
download | bcm5719-llvm-1e1475ace580ef52a80b56376780259cfb4edd51.tar.gz bcm5719-llvm-1e1475ace580ef52a80b56376780259cfb4edd51.zip |
Move vtable type metadata emission behind a cc1-level flag.
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.
Differential Revision: https://reviews.llvm.org/D28877
llvm-svn: 292448
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 1a09830b52f..04c5cfe5365 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -942,7 +942,7 @@ bool CodeGenModule::HasHiddenLTOVisibility(const CXXRecordDecl *RD) { void CodeGenModule::EmitVTableTypeMetadata(llvm::GlobalVariable *VTable, const VTableLayout &VTLayout) { - if (!getCodeGenOpts().PrepareForLTO) + if (!getCodeGenOpts().LTOUnit) return; CharUnits PointerWidth = |