[PATCH] D45798: LowerTypeTests: Propagate symver directives

Vlad Tsyrklevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 18 22:51:59 PDT 2018


vlad.tsyrklevich created this revision.
vlad.tsyrklevich added a reviewer: pcc.
Herald added subscribers: llvm-commits, eraman, mehdi_amini.

This change fixes https://crbug.com/834474, a build failure caused by
LowerTypeTests not preserving .symver symbol versioning directives for
exported functions. Emit symver information to ThinLTO summary data and
then propagate symver directives for exported functions to the merged
module.

Emitting symver information to the summaries increases the size of
intermediate build artifacts for a Chromium build by less than 0.2%.


Repository:
  rL LLVM

https://reviews.llvm.org/D45798

Files:
  include/llvm/Object/ModuleSymbolTable.h
  lib/Object/ModuleSymbolTable.cpp
  lib/Object/RecordStreamer.cpp
  lib/Object/RecordStreamer.h
  lib/Transforms/IPO/LowerTypeTests.cpp
  lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  test/Transforms/LowerTypeTests/export-symver.ll
  test/Transforms/ThinLTOBitcodeWriter/symver.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45798.143042.patch
Type: text/x-patch
Size: 10241 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180419/4d4e34bf/attachment.bin>


More information about the llvm-commits mailing list