[PATCH] D21439: [ELF] - Handle every global as unversioned export in versioned script.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 10:17:56 PDT 2016


ruiu added a comment.

Can you organize this as a part of recursive descendant parser? You can create a function parseVersion and do something like this.

  if (peek() == "{") {
    parseVersin();
    if (!atEOF())
      setError("anonymous version definition is used in combination with other version definitions");
    return;
  }
  while (!atEOF()) {
    StringRef Version = next();
    parseVersion();
  }


http://reviews.llvm.org/D21439





More information about the llvm-commits mailing list