[all-commits] [llvm/llvm-project] 354238: [COFF] Use a global option table to avoid reconstr...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Sat May 2 15:06:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3542384ae9fd43ec4594d45d22f0fe543be9ba20
      https://github.com/llvm/llvm-project/commit/3542384ae9fd43ec4594d45d22f0fe543be9ba20
  Author: Reid Kleckner <rnk at google.com>
  Date:   2020-05-02 (Sat, 02 May 2020)

  Changed paths:
    M lld/COFF/Driver.cpp
    M lld/COFF/Driver.h
    M lld/COFF/DriverUtils.cpp

  Log Message:
  -----------
  [COFF] Use a global option table to avoid reconstructing it

Otherwise an ArgumentParser is constructed for every directive section,
and that involves copying the entire table of options into a vector.
There is no need for this, just have one option table.




More information about the All-commits mailing list