aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorSteven Wu <stevenwu@apple.com>2020-07-23 13:04:57 -0700
committerSteven Wu <stevenwu@apple.com>2020-07-23 13:07:28 -0700
commitac375c2fe316dae6eb770b38f90d6b67fadd22ec (patch)
treea4bc36e78eb295993df534812ae7f4a0b2bda981 /llvm/lib/Support/GraphWriter.cpp
parent183342c0a9850e60dd7a004b651c83dfb3a7d25e (diff)
downloadllvm-ac375c2fe316dae6eb770b38f90d6b67fadd22ec.zip
llvm-ac375c2fe316dae6eb770b38f90d6b67fadd22ec.tar.gz
llvm-ac375c2fe316dae6eb770b38f90d6b67fadd22ec.tar.bz2
[Bitcode] Avoid duplicating linker option when upgrading
Summary: The upgrading path from old ModuleFlag based linker options to the new NamedMetadata based linker option in in materializeMetadata() which gets called once for the module and once for every GV. The linker options are getting dup'ed every time and it can create massive amount of the linker options in the object file that gets created from old bitcode. Fix the problem by checking if the new option exists or not before upgrade again. rdar://64543389 Reviewers: pcc, t.p.northover, dexonsmith, arphaman Reviewed By: arphaman Subscribers: hiraditya, jkorous, ributzka, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83688
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
0 files changed, 0 insertions, 0 deletions