[llvm] [XCOFF] make related SD symbols as isFunction (PR #69553)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 06:35:01 PST 2023


================
@@ -853,6 +853,8 @@ class xcoff_symbol_iterator : public symbol_iterator {
   xcoff_symbol_iterator(const basic_symbol_iterator &B)
       : symbol_iterator(B) {}
 
+  xcoff_symbol_iterator(const SymbolRef *Symbol) : symbol_iterator(*Symbol) {}
----------------
diggerlin wrote:

`xcoff_symbol_iterator(const SymbolRef *Symbol) : symbol_iterator(*Symbol) {}`

change to 

`xcoff_symbol_iterator(const XCOFFSymbolRef *Symbol) : symbol_iterator(*Symbol) {}`

otherwise a pointer of  ELFSymbolRef can also be used to  initiate the xcoff_symbol_iterator.




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


More information about the llvm-commits mailing list