[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)
commite04f789f46adbbf2ec5f48ead03c67250987500f
tree1c2bd6a969e3e41cfe89ee273eb091780c244780
parent8012b5f7df86649a87cc9211f8be584f92eca43a
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244172 91177308-0d34-0410-b5e6-96231b3b80d8
tools/dsymutil/dsymutil.cpp