[all-commits] [llvm/llvm-project] 972b6a: [llvm-objcopy][Support] move writeToOutput helper ...

avl-llvm via All-commits all-commits at lists.llvm.org
Mon Mar 22 05:41:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 972b6a3a3471c2a742c5c5d8ec004ff640d544c4
      https://github.com/llvm/llvm-project/commit/972b6a3a3471c2a742c5c5d8ec004ff640d544c4
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2021-03-22 (Mon, 22 Mar 2021)

  Changed paths:
    M llvm/include/llvm/Support/raw_ostream.h
    M llvm/lib/Support/raw_ostream.cpp
    M llvm/tools/llvm-objcopy/llvm-objcopy.cpp
    M llvm/tools/llvm-objcopy/llvm-objcopy.h
    M llvm/unittests/Support/raw_ostream_test.cpp

  Log Message:
  -----------
  [llvm-objcopy][Support] move writeToOutput helper function to Support.

writeToOutput function is useful when it is necessary to create different kinds
of streams(based on stream name) and when we need to use a temporary file
while writing(which would be renamed into the resulting file in a success case).
This patch moves the writeToStream helper into the Support library.

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




More information about the All-commits mailing list