summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Main.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-12-18 07:37:18 +0000
committerOwen Anderson <resistor@mac.com>2010-12-18 07:37:18 +0000
commitc15ab07cffcbca4a37334d5bfafcdd141e253f09 (patch)
treea3ca76b0ae4f20bf4e0aa8fe97b14d65e693da3c /llvm/lib/CompilerDriver/Main.cpp
parentb403e098a125ef10e206a1de5a850bf73034b330 (diff)
downloadbcm5719-llvm-c15ab07cffcbca4a37334d5bfafcdd141e253f09.tar.gz
bcm5719-llvm-c15ab07cffcbca4a37334d5bfafcdd141e253f09.zip
Revert r122143 through r122140, which collectively broke the LLVMC tests on
the buildbots. llvm-svn: 122149
Diffstat (limited to 'llvm/lib/CompilerDriver/Main.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CompilerDriver/Main.cpp b/llvm/lib/CompilerDriver/Main.cpp
index 88cfdb21230..4f8794041b9 100644
--- a/llvm/lib/CompilerDriver/Main.cpp
+++ b/llvm/lib/CompilerDriver/Main.cpp
@@ -43,7 +43,8 @@ namespace {
return 0;
}
else if (SaveTemps == SaveTempsEnum::Obj && !OutputFilename.empty()) {
- tempDir = sys::path::parent_path(OutputFilename);
+ tempDir = OutputFilename;
+ tempDir = tempDir.getDirname();
}
else {
// SaveTemps == Cwd --> use current dir (leave tempDir empty).
OpenPOWER on IntegriCloud