[llvm-objcopy] remove split dwo file creation from executeObjcopyOnBinary.
authorAlexey Lapshin <a.v.lapshin@mail.ru>
Thu, 11 Mar 2021 22:31:06 +0000 (01:31 +0300)
committerAlexey Lapshin <a.v.lapshin@mail.ru>
Thu, 18 Mar 2021 10:45:53 +0000 (13:45 +0300)
commitf134a7158b1eb1b1a63dc402b46a57bf6e5ec897
treeef7f282a74b76ea431bbde958a7ef5dbefe240d9
parentb1afa187c8ee0a42c66aace709069dbd195d012f
[llvm-objcopy] remove split dwo file creation from executeObjcopyOnBinary.

This patch removes creation of the resulting file from the
executeObjcopyOnBinary() function. For the most use cases, the
executeObjcopyOnBinary receives output file as a parameter
- raw_ostream &Out. The splitting .dwo file is implemented differently:
file containg .dwo tables is created inside executeObjcopyOnBinary().
When objcopy functionality would be moved into separate library,
current implementation will become inconvenient. The goal of that
refactoring is to separate concerns: It might be convenient to
to do dwo tables splitting but to create resulting file differently.

Differential Revision: https://reviews.llvm.org/D98582
llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
llvm/tools/llvm-objcopy/llvm-objcopy.cpp