diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-09-17 20:40:16 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-09-17 20:40:16 +0000 |
commit | fbb431b292ea2e68dec8f504373c73adb9e7ae47 (patch) | |
tree | cdbcbdda2ff9bce97891db5a87319f927cc03a19 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | d4473f11260a0a12f8da24823bf4a44ab98436ce (diff) | |
download | llvm-fbb431b292ea2e68dec8f504373c73adb9e7ae47.zip llvm-fbb431b292ea2e68dec8f504373c73adb9e7ae47.tar.gz llvm-fbb431b292ea2e68dec8f504373c73adb9e7ae47.tar.bz2 |
[ThinLTO] Ensure anonymous globals renamed even at -O0
Summary:
This fixes an issue when files are compiled with -flto=thin
at default -O0. We need to rename anonymous globals before attempting
to write the module summary because all values need names for
the summary. This was happening at -O1 and above, but not before
the early exit when constructing the pipeline for -O0.
Also add an internal -prepare-for-thinlto option to enable this
to be tested via opt.
Fixes PR30419.
Reviewers: mehdi_amini
Subscribers: probinson, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D24701
llvm-svn: 281840
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions