aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/SymbolicFile.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-02-28 00:33:59 +0000
committerRui Ueyama <ruiu@google.com>2018-02-28 00:33:59 +0000
commitcaa8e2335fa7c79ddca44867fa6431d6948e55ee (patch)
tree613eb3830dee73f749f19fd1191066b8b64b5f93 /llvm/lib/Object/SymbolicFile.cpp
parent319eb8b3c36f4da675edd9d8cf186f1039f4a5ef (diff)
downloadllvm-caa8e2335fa7c79ddca44867fa6431d6948e55ee.zip
llvm-caa8e2335fa7c79ddca44867fa6431d6948e55ee.tar.gz
llvm-caa8e2335fa7c79ddca44867fa6431d6948e55ee.tar.bz2
[WebAssembly] Do not remove existing output file.
FileOutputBuffer automatically removes an existing file, so we don't need to do that. Actually doing that is discouraged because when the linker fails to create an output for some reason after instantiating FileOutputBufffer, FileOutputBuffer removes a temporary file and don't touch an existing file. That's an desired behavior from the user's point of view. (Internally, FileOutputBuffer writes its contents to a temporary file and then rename it over to an existing file on commit()). Differential Revision: https://reviews.llvm.org/D43728 llvm-svn: 326281
Diffstat (limited to 'llvm/lib/Object/SymbolicFile.cpp')
0 files changed, 0 insertions, 0 deletions