File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -164,13 +164,14 @@ publishOutlinedHashTree(std::unique_ptr<OutlinedHashTree> HashTree) {
164164 CodeGenData::getInstance ().publishOutlinedHashTree (std::move (HashTree));
165165}
166166
167- // / Initialize the two-codegen rounds.
168167void initializeTwoCodegenRounds ();
169168
170- // / Save the current module before the first codegen round.
169+ // / Save \p TheModule before the first codegen round.
170+ // / \p Task represents the partition number in the parallel code generation
171+ // / process.
171172void saveModuleForTwoRounds (const Module &TheModule, unsigned Task);
172173
173- // / Load the current module before the second codegen round.
174+ // / Load the optimized module before the second codegen round.
174175std::unique_ptr<Module> loadModuleForTwoRounds (BitcodeModule &OrigModule,
175176 unsigned Task,
176177 LLVMContext &Context);
Original file line number Diff line number Diff line change @@ -225,7 +225,9 @@ void warn(Error E, StringRef Whence) {
225225}
226226
227227static std::string getPath (StringRef Dir, unsigned Task) {
228- return (Dir + " /" + llvm::Twine (Task) + " .saved_copy.bc" ).str ();
228+ llvm::SmallString<128 > Path (Dir);
229+ llvm::sys::path::append (Path, llvm::Twine (Task) + " .saved_copy.bc" );
230+ return std::string (Path);
229231}
230232
231233void initializeTwoCodegenRounds () {
You can’t perform that action at this time.
0 commit comments