Fixes problem when calling llvm-ar from an unmodifiable directory.
authorManuel Klimek <klimek@google.com>
Mon, 8 Jul 2013 14:44:57 +0000 (14:44 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 8 Jul 2013 14:44:57 +0000 (14:44 +0000)
commita012a666888ddd92858eda808af480a01f34bd1e
treed7342c9e1500ac3c7558a0d880eb1ccd9d4a6b7e
parent6c75160b875799a9303879e11022edf4ba44c3f9
Fixes problem when calling llvm-ar from an unmodifiable directory.

This fixes a regression introduced by r185726: the new call to get
a unique file does not prepend the system temporary directory, so
we need to anchor on the file that the temporary file gets moved
to to ensure we're on the same file system.

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