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) {
164
164
CodeGenData::getInstance ().publishOutlinedHashTree (std::move (HashTree));
165
165
}
166
166
167
- // / Initialize the two-codegen rounds.
168
167
void initializeTwoCodegenRounds ();
169
168
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.
171
172
void saveModuleForTwoRounds (const Module &TheModule, unsigned Task);
172
173
173
- // / Load the current module before the second codegen round.
174
+ // / Load the optimized module before the second codegen round.
174
175
std::unique_ptr<Module> loadModuleForTwoRounds (BitcodeModule &OrigModule,
175
176
unsigned Task,
176
177
LLVMContext &Context);
Original file line number Diff line number Diff line change @@ -225,7 +225,9 @@ void warn(Error E, StringRef Whence) {
225
225
}
226
226
227
227
static 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);
229
231
}
230
232
231
233
void initializeTwoCodegenRounds () {
You can’t perform that action at this time.
0 commit comments