[llvm] [llvm-objcopy] Add llvm-objcopy option --set-visibility-sym (PR #80872)
    Ilia Kuklin via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb  8 09:32:25 PST 2024
    
    
  
================
@@ -18,6 +19,9 @@ namespace objcopy {
 struct ELFConfig {
   uint8_t NewSymbolVisibility = (uint8_t)ELF::STV_DEFAULT;
 
+  NameMatcher SymbolsToSetVisibility;
+  uint8_t SetVisibilityType = ELF::STV_DEFAULT;
----------------
kuilpd wrote:
I looked it up and found that "values of unscoped enumeration type can be promoted or converted to integral types", so this is just an implicit conversion.
I can make a PR later that removes that cast in NewSymbolVisibility.
https://github.com/llvm/llvm-project/pull/80872
    
    
More information about the llvm-commits
mailing list