[PATCH] D46488: [LTO] Handle Task=-1 passed to addSaveTemps
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 5 07:43:18 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL331591: [LTO] Handle Task=-1 passed to addSaveTemps (authored by tejohnson, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D46488
Files:
llvm/trunk/lib/LTO/LTOBackend.cpp
Index: llvm/trunk/lib/LTO/LTOBackend.cpp
===================================================================
--- llvm/trunk/lib/LTO/LTOBackend.cpp
+++ llvm/trunk/lib/LTO/LTOBackend.cpp
@@ -76,10 +76,12 @@
// user hasn't requested using the input module's path, emit to a file
// named from the provided OutputFileName with the Task ID appended.
if (M.getModuleIdentifier() == "ld-temp.o" || !UseInputModulePath) {
- PathPrefix = OutputFileName + utostr(Task);
+ PathPrefix = OutputFileName;
+ if (Task != (unsigned)-1)
+ PathPrefix += utostr(Task) + ".";
} else
- PathPrefix = M.getModuleIdentifier();
- std::string Path = PathPrefix + "." + PathSuffix + ".bc";
+ PathPrefix = M.getModuleIdentifier() + ".";
+ std::string Path = PathPrefix + PathSuffix + ".bc";
std::error_code EC;
raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None);
// Because -save-temps is a debugging feature, we report the error
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46488.145373.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180505/b79b53b2/attachment.bin>
More information about the llvm-commits
mailing list