[PATCH] D43011: [ELF] Create and export symbols provided by a linker script if they referenced by DSOs.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 04:12:00 PST 2018


grimar added inline comments.


================
Comment at: ELF/InputFiles.h:344
 extern std::vector<InputFile *> SharedFiles;
+extern llvm::DenseSet<StringRef> UndefsInShlibs;
 
----------------
It seems like instead of adding global variable you can make helper that
would scan over `SharedFiles` and invoke `SharedFile::getUndefinedSymbols`
to build the same set and then pass it to `shouldDefineSym` ?


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43011





More information about the llvm-commits mailing list