[all-commits] [llvm/llvm-project] 59ae18: Remove unnecessary StringRef convesion in llvm-config

John Ericson via All-commits all-commits at lists.llvm.org
Fri Oct 8 18:16:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59ae182bc248ffd7d9aa5d7b154b3feddbb74146
      https://github.com/llvm/llvm-project/commit/59ae182bc248ffd7d9aa5d7b154b3feddbb74146
  Author: John Ericson <John.Ericson at Obsidian.Systems>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M llvm/tools/llvm-config/llvm-config.cpp

  Log Message:
  -----------
  Remove unnecessary StringRef convesion in llvm-config

We have a string litteral (via CPP) used to construct `StringRef`, which
is used to construct a `SmallString`. Just construct the latter
directly.

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




More information about the All-commits mailing list