aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CompilerDriver/Tool.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-07-04 14:23:32 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-07-04 14:23:32 +0000
commit209c4f4e938758217177376c61016e030d7cdf01 (patch)
tree4ceb711f8da04c8aca2ed2449537435c86abacc3 /lib/CompilerDriver/Tool.cpp
parent9e045896c21d9e1df19b12bf47f38dea21608f5e (diff)
downloadexternal_llvm-209c4f4e938758217177376c61016e030d7cdf01.zip
external_llvm-209c4f4e938758217177376c61016e030d7cdf01.tar.gz
external_llvm-209c4f4e938758217177376c61016e030d7cdf01.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver/Tool.cpp')
-rw-r--r--lib/CompilerDriver/Tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CompilerDriver/Tool.cpp b/lib/CompilerDriver/Tool.cpp
index 7953dd2..5a32fd3 100644
--- a/lib/CompilerDriver/Tool.cpp
+++ b/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()) {