diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-02 13:28:57 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-02 13:28:57 +0000 |
| commit | 778fcc770b249fbc0157c50318825c931ee9f485 (patch) | |
| tree | c8e81736a08789375b32273b37039b110adda56b /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 8cb7876cb366b5803ca35d92313ea00eadf29b78 (diff) | |
| download | llvm-778fcc770b249fbc0157c50318825c931ee9f485.zip llvm-778fcc770b249fbc0157c50318825c931ee9f485.tar.gz llvm-778fcc770b249fbc0157c50318825c931ee9f485.tar.bz2 | |
Revert r221096 bringing back r221014 with a fix.
The issue was that linkAppendingVarProto does the full linking job, including
deleting the old dst variable. The fix is just to call it and return early
if we have a GV with appending linkage.
original message:
Refactor duplicated code in liking GlobalValues.
There is quiet a bit of logic that is common to any GlobalValue but was
duplicated for Functions, GlobalVariables and GlobalAliases.
While at it, merge visibility even when comdats are used, fixing pr21415.
llvm-svn: 221098
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
