aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-25 18:16:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-25 18:16:51 +0000
commit59f9046031bc9703d405b5a9ec61541a90e03def (patch)
tree67d5193d18342c621dce38a3dbd2693f7003e782 /lib/Driver/Driver.cpp
parent05dc91bc772f6dc46f90d927048bbef05ba03392 (diff)
Driver/Darwin: Dsymutil actions should put the dSYM adjacent to the output file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index ef777149d7..9d02dee540 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1226,7 +1226,13 @@ const char *Driver::GetNamedOutputPath(Compilation &C,
}
llvm::SmallString<128> BasePath(BaseInput);
- llvm::StringRef BaseName = llvm::sys::path::filename(BasePath);
+ llvm::StringRef BaseName;
+
+ // Dsymutil actions should use the full path.
+ if (isa<DsymutilJobAction>(JA))
+ BaseName = BasePath;
+ else
+ BaseName = llvm::sys::path::filename(BasePath);
// Determine what the derived output name should be.
const char *NamedOutput;