aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2021-03-12 16:31:35 +0300
committerAlexey Lapshin <a.v.lapshin@mail.ru>2021-03-17 17:27:00 +0300
commit021de7cf80268091cf13485a538b611b37d0b33e (patch)
tree6d3eb17b90adc172c53618def5d89a2946284743 /llvm/lib/Transforms/Utils/Debugify.cpp
parentd9ef6bc42643ae4feab3f9eca97864d72034f2ce (diff)
downloadllvm-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/lib/Transforms/Utils/Debugify.cpp')
0 files changed, 0 insertions, 0 deletions