[all-commits] [llvm/llvm-project] 625bd9: [dsymutil] Add flag to force a static variable to ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Apr 28 11:33:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 625bd94c6d645c4cae40649800de8047bacd3f53
      https://github.com/llvm/llvm-project/commit/625bd94c6d645c4cae40649800de8047bacd3f53
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

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

  Log Message:
  -----------
  [dsymutil] Add flag to force a static variable to keep its enclosing function

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

Differential revision: https://reviews.llvm.org/D101337




More information about the All-commits mailing list