[PATCH] D21681: [ELF] - Implemented support of default/non-default symbols versions
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 01:21:38 PDT 2016
ruiu added inline comments.
================
Comment at: ELF/SymbolTable.cpp:166
@@ -165,1 +165,3 @@
+static uint16_t getVersionId(Symbol *Sym, StringRef Name) {
+ uint16_t Version =
----------------
This function needs a function comment as it is not obvious what this is for.
================
Comment at: ELF/SymbolTable.cpp:189
@@ +188,3 @@
+ }
+ error("symbol " + Name.substr(0, Name.find('@')) + " has undefined version " +
+ VersionName);
----------------
I wouldn't strip '@' and following characters because it is what users want to know.
================
Comment at: ELF/SymbolTable.cpp:191
@@ +190,3 @@
+ VersionName);
+ return Version;
+}
----------------
Since this is a dummy value, return something meaningless such as just 0.
http://reviews.llvm.org/D21681
More information about the llvm-commits
mailing list