[PATCH] D26604: [ELF] - Added support for extern "c++" local symbols in version script.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 02:06:50 PST 2016


grimar added inline comments.


================
Comment at: ELF/LinkerScript.cpp:1810
 
+void ScriptParser::readSymbols(std::vector<SymbolVersion> &V, bool Globals) {
+  for (;;) {
----------------
grimar wrote:
> ruiu wrote:
> > I don't think you need `Globals`. You could just stop reading until `local:` in any context.
> That what seems obvious and was what I first think of.
> But also it would parse something like next I think:
> 
> ...
> local:
> <locals1>
> local:
> <local2>
> ...
> It does not look clean.
> 
> Actually if you're ok with that, I am fine either, 
> as I also do not like that flag.
Ah, I see my mistake now, above can't happen, please ignore my comment then.


https://reviews.llvm.org/D26604





More information about the llvm-commits mailing list