diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-07-04 14:23:32 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-07-04 14:23:32 +0000 |
commit | 4f0fa1539ce32c9a38854d0d6952b03348841328 (patch) | |
tree | 92c13099746926158c4dca9f5d9b54c9630a13e0 /llvm/lib/CompilerDriver/Tool.cpp | |
parent | 9297a52715f96beef84ee5e6c89bb2dc58d03d3c (diff) | |
download | bcm5719-llvm-4f0fa1539ce32c9a38854d0d6952b03348841328.tar.gz bcm5719-llvm-4f0fa1539ce32c9a38854d0d6952b03348841328.zip |
Make -save-temps=obj play better with -o.
Use only the *dirname* of the pathname given to -o, so that -o can still be used
to name the output executable. This is more like what GCC 4.5 does.
llvm-svn: 74790
Diffstat (limited to 'llvm/lib/CompilerDriver/Tool.cpp')
-rw-r--r-- | llvm/lib/CompilerDriver/Tool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CompilerDriver/Tool.cpp b/llvm/lib/CompilerDriver/Tool.cpp index 7953dd24934..5a32fd33c3e 100644 --- a/llvm/lib/CompilerDriver/Tool.cpp +++ b/llvm/lib/CompilerDriver/Tool.cpp @@ -56,7 +56,7 @@ sys::Path Tool::OutFilename(const sys::Path& In, sys::Path Out; if (StopCompilation) { - if (!OutputFilename.empty() && SaveTemps != SaveTempsEnum::Obj ) { + if (!OutputFilename.empty()) { Out.set(OutputFilename); } else if (IsJoin()) { |