[PATCH] D17338: [SplitModule] Do not copy stale debug info during module splitting.

Sergei Larin via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 09:27:06 PST 2016


slarin created this revision.
slarin added a subscriber: llvm-commits.

Currently CloneModule always copy debug related metadata even if debugging subject was not cloned
in the target module. This is not only suboptimal in size and time, but can potentially create
issues when metadata retains references to objects that were not cloned in the target module.

This patch attempts bluntly address the effect without fixing the cause.

http://reviews.llvm.org/D17338

Files:
  lib/Transforms/Utils/SplitModule.cpp
  test/tools/llvm-split/test_split_debug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17338.48202.patch
Type: text/x-patch
Size: 9056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160217/ef9d2443/attachment.bin>


More information about the llvm-commits mailing list