[llvm] [llvm-objcopy] Add llvm-objcopy option --set-visibility-sym (PR #80872)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 01:15:32 PST 2024


================
@@ -0,0 +1,106 @@
+
+# RUN: yaml2obj %s -o %t.o
+
+# Check if the visibility of a single symbol is set correctly,
+# and none of other symbols are affected
+# RUN: cp %t.o %t0.o
+# RUN: llvm-objcopy %t0.o --set-symbol-visibility=default_local=hidden
----------------
jh7370 wrote:

Noting that this sequence is exactly why I think you should permit the option to appear multiple times and apply it every time.

https://github.com/llvm/llvm-project/pull/80872


More information about the llvm-commits mailing list