[all-commits] [llvm/llvm-project] f93c27: [Object] Change OffloadBinary::write to return Sma...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Sep 1 09:19:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f93c271d4cc11b865b87da1402e1cb33449fe4bf
      https://github.com/llvm/llvm-project/commit/f93c271d4cc11b865b87da1402e1cb33449fe4bf
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-09-01 (Fri, 01 Sep 2023)

  Changed paths:
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
    M clang/tools/clang-offload-packager/ClangOffloadPackager.cpp
    M llvm/include/llvm/Object/OffloadBinary.h
    M llvm/lib/Object/OffloadBinary.cpp
    M llvm/lib/ObjectYAML/OffloadEmitter.cpp
    M llvm/unittests/Object/OffloadingTest.cpp

  Log Message:
  -----------
  [Object] Change OffloadBinary::write to return SmallString<0>

SmallString<0> is more flexible and avoids an unneeded copy in
ObjectYAML/OffloadEmitter.cpp.

Reviewed By: jhuber6

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




More information about the All-commits mailing list