[PATCH] D32171: [ELF] - Implemented --defsym option #2
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 04:16:18 PDT 2017
ruiu added inline comments.
================
Comment at: ELF/Driver.cpp:884
+// 3) --defsym=name=expression
+// We support first two. Alias implemented very similar to --wrap option,
+// second form simply creates an absolute symbol. We do not support
----------------
I'd support just 1.
================
Comment at: ELF/Driver.cpp:887
+// expressions with math for simplicity.
+template <class ELFT> static void handleDefsym(opt::InputArgList &Args) {
+ std::vector<std::pair<StringRef, StringRef>> Ret;
----------------
Make this a function that returns a vector of pair<StringRef, StringRef> and use alias function in link().
https://reviews.llvm.org/D32171
More information about the llvm-commits
mailing list