aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-05-01 02:43:52 +0000
committerLang Hames <lhames@gmail.com>2019-05-01 02:43:52 +0000
commit3181b87cb68ecb4ab73a9cfe1096271b964e6aa9 (patch)
treee7ca0fd886e567502c5433f0a7b66be022b01c0c /llvm/tools/llvm-readobj/llvm-readobj.cpp
parent3740ca1e7fc757574683d64a797f4edd4f90a005 (diff)
downloadllvm-3181b87cb68ecb4ab73a9cfe1096271b964e6aa9.zip
llvm-3181b87cb68ecb4ab73a9cfe1096271b964e6aa9.tar.gz
llvm-3181b87cb68ecb4ab73a9cfe1096271b964e6aa9.tar.bz2
[JITLink] Make sure we explicitly deallocate memory on failure.
JITLinkGeneric phases 2 and 3 (focused on applying fixups and finalizing memory, respectively) may fail for various reasons. If this happens, we need to explicitly de-allocate the memory allocated in phase 1 (explicitly, because deallocation may also fail and so is implemented as a method returning error). No testcase yet: I am still trying to decide on the right way to test totally platform agnostic code like this. llvm-svn: 359643
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions