diff options
| author | Alexey Lapshin <a.v.lapshin@mail.ru> | 2021-03-12 16:31:35 +0300 |
|---|---|---|
| committer | Alexey Lapshin <a.v.lapshin@mail.ru> | 2021-03-17 17:27:00 +0300 |
| commit | 021de7cf80268091cf13485a538b611b37d0b33e (patch) | |
| tree | 6d3eb17b90adc172c53618def5d89a2946284743 /llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp | |
| parent | d9ef6bc42643ae4feab3f9eca97864d72034f2ce (diff) | |
| download | llvm-021de7cf80268091cf13485a538b611b37d0b33e.zip llvm-021de7cf80268091cf13485a538b611b37d0b33e.tar.gz llvm-021de7cf80268091cf13485a538b611b37d0b33e.tar.bz2 | |
[llvm-objcopy][NFC] Move ownership keeping code into restoreStatOnFile().
The D93881 added functionality which preserve ownership for output file
if llvm-objcopy is called under root. That code was added into the place
where output file is created. The llvm-objcopy already has a function which
sets/restores rights/permissions for the output file.
That is the restoreStatOnFile() function. This patch moves code
(preserving ownershipping) into the restoreStatOnFile() function.
Differential Revision: https://reviews.llvm.org/D98511
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp')
0 files changed, 0 insertions, 0 deletions
