[PATCH] D98426: [llvm-objcopy][Support] move writeToStream helper function to Support.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 11 07:09:17 PST 2021


avl created this revision.
avl added reviewers: jhenderson, grimar, labath, dblaikie.
Herald added subscribers: dexonsmith, abrachet, jfb, hiraditya, emaste.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
avl requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

writeToStream 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98426

Files:
  llvm/include/llvm/Support/raw_ostream.h
  llvm/lib/Support/raw_ostream.cpp
  llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  llvm/tools/llvm-objcopy/llvm-objcopy.cpp
  llvm/tools/llvm-objcopy/llvm-objcopy.h
  llvm/unittests/Support/raw_ostream_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98426.329962.patch
Type: text/x-patch
Size: 9392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210311/bf0eacad/attachment.bin>


More information about the llvm-commits mailing list