[PATCH] D101337: [dsymutil] Add flag to force a static variable to keep its enclosing function

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 18:22:25 PDT 2021


JDevlieghere created this revision.
JDevlieghere added reviewers: friss, aprantl.
Herald added subscribers: dang, hiraditya.
JDevlieghere requested review of this revision.
Herald added a project: LLVM.

Add a flag to change dsymutil's behavior and force a static variable to
keep its enclosing function. The test shows a situation where that could
be useful. I'm not convinced this behavior makes sense as a default,
which is why it's behind a flag.

rdar://74918374


https://reviews.llvm.org/D101337

Files:
  llvm/docs/CommandGuide/dsymutil.rst
  llvm/include/llvm/DWARFLinker/DWARFLinker.h
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/test/tools/dsymutil/Inputs/private/tmp/keep_func/main.o
  llvm/test/tools/dsymutil/Inputs/private/tmp/keep_func/main.out
  llvm/test/tools/dsymutil/X86/keep-func.test
  llvm/test/tools/dsymutil/cmdline.test
  llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
  llvm/tools/dsymutil/LinkUtils.h
  llvm/tools/dsymutil/Options.td
  llvm/tools/dsymutil/dsymutil.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101337.340704.patch
Type: text/x-patch
Size: 6940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/54928738/attachment.bin>


More information about the llvm-commits mailing list