[dsymutil] Do not create temporary files in -no-output mode.
authorFrederic Riss <friss@apple.com>
Wed, 5 Aug 2015 23:33:50 +0000 (23:33 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 5 Aug 2015 23:33:50 +0000 (23:33 +0000)
commit246c9b0b46997424d79aa41098d78a9a83897c39
treea81833193da6f195bd32f834dabf2ed63ede4df8
parent2a6e44518f105c30f4ce97106e0f522618683e67
[dsymutil] Do not create temporary files in -no-output mode.

The files were never written to and then deleted, but they were created
nonetheless. To prevent that, create a wrapper around the 2 variants of
createUniqueFile and use the one that only does an access(Exists) call
to check for name unicity in -no-output mode.

llvm-svn: 244172
llvm/tools/dsymutil/dsymutil.cpp