diff options
author | Owen Anderson <resistor@mac.com> | 2010-12-18 07:37:18 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-12-18 07:37:18 +0000 |
commit | c15ab07cffcbca4a37334d5bfafcdd141e253f09 (patch) | |
tree | a3ca76b0ae4f20bf4e0aa8fe97b14d65e693da3c /llvm/lib/CompilerDriver/Tool.cpp | |
parent | b403e098a125ef10e206a1de5a850bf73034b330 (diff) | |
download | bcm5719-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/Tool.cpp')
-rw-r--r-- | llvm/lib/CompilerDriver/Tool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CompilerDriver/Tool.cpp b/llvm/lib/CompilerDriver/Tool.cpp index 876759aa72b..232bd41c4ba 100644 --- a/llvm/lib/CompilerDriver/Tool.cpp +++ b/llvm/lib/CompilerDriver/Tool.cpp @@ -61,7 +61,7 @@ sys::Path Tool::OutFilename(const sys::Path& In, Out.appendSuffix(OutputSuffix); } else { - Out.set(sys::path::stem(In.str())); + Out.set(In.getBasename()); Out.appendSuffix(OutputSuffix); } } @@ -69,7 +69,7 @@ sys::Path Tool::OutFilename(const sys::Path& In, if (IsJoin()) Out = MakeTempFile(TempDir, "tmp", OutputSuffix); else - Out = MakeTempFile(TempDir, sys::path::stem(In.str()), OutputSuffix); + Out = MakeTempFile(TempDir, In.getBasename(), OutputSuffix); } return Out; } |