[all-commits] [llvm/llvm-project] 75b0bb: [LTO] Use StringRef instead of C-style strings in ...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Mon Jun 22 03:23:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 75b0bbca1d0cb1967025bdaabddac8f75f1369bc
      https://github.com/llvm/llvm-project/commit/75b0bbca1d0cb1967025bdaabddac8f75f1369bc
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
    M llvm/lib/LTO/LTOCodeGenerator.cpp
    M llvm/tools/lto/lto.cpp

  Log Message:
  -----------
  [LTO] Use StringRef instead of C-style strings in setCodeGenDebugOptions

Fixes an issue with missing nul-terminators and saves us some string
copying, compared to a version which would insert nul-terminators.

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




More information about the All-commits mailing list