[PATCH] D39511: [ELF] Support expressions with -defsym option
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 3 16:32:52 PDT 2017
ruiu added inline comments.
================
Comment at: ELF/ScriptParser.cpp:1342
+
+void elf::readDefsym(MemoryBufferRef MB) {
+ ScriptParser(MB).readDefsym();
----------------
Actually, I think a better way of doing this is to pass two StringRefs, one for symbol name and the other for expression to this function. Introducing a different tokenization scheme only to separate "<sym>=<expr>" into <sym> and <expr> seems a bit too much. You probably should split a -defsym argument into two StringRefs in the driver.
Repository:
rL LLVM
https://reviews.llvm.org/D39511
More information about the llvm-commits
mailing list