[all-commits] [llvm/llvm-project] acf578: [clang] NFC: Use compile-time option spelling when...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Aug 9 10:02:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acf57858c1acb4ff776a1d734b86e1c05303132a
      https://github.com/llvm/llvm-project/commit/acf57858c1acb4ff776a1d734b86e1c05303132a
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [clang] NFC: Use compile-time option spelling when generating command line

When generating command lines, use the option spelling generated by TableGen (`StringLiteral`) instead of constructing it at runtime. This saves some needless allocations.

Depends on D157029.

Reviewed By: benlangmuir, MaskRay

Differential Revision: https://reviews.llvm.org/D157054




More information about the All-commits mailing list