aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-03-04 17:48:35 +0000
committerTeresa Johnson <tejohnson@google.com>2016-03-04 17:48:35 +0000
commita17f2cd1a3d6deb1286188c725dad426d619b109 (patch)
treed924917500cbd15854df90de0d9e9efe2aff5440 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent51155fc0d1b4580ba800b05192f7827b45670648 (diff)
downloadllvm-a17f2cd1a3d6deb1286188c725dad426d619b109.zip
llvm-a17f2cd1a3d6deb1286188c725dad426d619b109.tar.gz
llvm-a17f2cd1a3d6deb1286188c725dad426d619b109.tar.bz2
[ThinLTO] Ensure prevailing linkonce emitted as weak in ThinLTO backends
Summary: Since IR files are all compiled into separate independent object files in ThinLTO mode, the prevailing linkonce symbols must be emitted in its object file even if it is no longer referenced there, e.g. if no references remain in the module after inlining, since it may be referenced by another ThinLTO compiled object file. This is done by changing LDPR_PREVAILING_DEF_IRONLY* symbols to LDPR_PREVAILING_DEF, which converts the prevailing linkonce to weak. We also don't need the other prevailing IRONLY handling for internalization, which is not currently performed for ThinLTO. Test case included. Reviewers: davidxl, rafael Subscribers: rafael, joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D16173 llvm-svn: 262727
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions