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
diff --git a/llvm/lib/CompilerDriver/Tool.cpp b/llvm/lib/CompilerDriver/Tool.cpp
index 7953dd2..5a32fd3 100644
--- a/llvm/lib/CompilerDriver/Tool.cpp
+++ b/llvm/lib/CompilerDriver/Tool.cpp
@@ -56,7 +56,7 @@
sys::Path Out;
if (StopCompilation) {
- if (!OutputFilename.empty() && SaveTemps != SaveTempsEnum::Obj ) {
+ if (!OutputFilename.empty()) {
Out.set(OutputFilename);
}
else if (IsJoin()) {