[dsymutil] Remove empty reproducer directory on exit
authorKeith Smiley <keithbsmiley@gmail.com>
Tue, 4 Apr 2023 04:43:36 +0000 (21:43 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Wed, 5 Apr 2023 18:05:16 +0000 (11:05 -0700)
commit8245f2665240f7961ae39bc606d7b6a4b0d62c4d
tree1c1ac1aea52abe721a9e407baa10821cde2f98f0
parent53152f12a47bf6e97f1f2f2d6b71e7b4d4e3740a
[dsymutil] Remove empty reproducer directory on exit

In the case the reproducer isn't generated, we don't want to leave
around an empty temporary directory.

Fixes https://github.com/llvm/llvm-project/issues/61920

Differential Revision: https://reviews.llvm.org/D147498
llvm/test/tools/dsymutil/X86/reproducer.test
llvm/tools/dsymutil/Reproducer.cpp