Make -save-temps=obj play better with -o.
authorMikhail Glushenkov <foldr@codedgers.com>
Sat, 4 Jul 2009 14:23:32 +0000 (14:23 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Sat, 4 Jul 2009 14:23:32 +0000 (14:23 +0000)
commiteebf60cae51371393c6136d71c7c715350079fb8
tree4ceb711f8da04c8aca2ed2449537435c86abacc3
parentd0f27c4ebbb445b1bb976a57dbd24df28318e464
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
lib/CompilerDriver/Main.cpp
lib/CompilerDriver/Tool.cpp