Skip to content

Commit

Permalink
Update module linking comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-Durov committed Oct 12, 2024
1 parent f850885 commit 9d19ee9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Transforms/Yk/ModuleClone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ struct YkModuleClone : public ModulePass {
}
updateClonedFunctions(*Cloned);

// The `OverrideFromSrc` flag instructs the linker to prioritize
// The `OverrideFromSrc` flag instructs the linker to prioritise
// definitions from the source module (the second argument) when
// conflicts arise. This means that if two functions have the same
// name in both the original and cloned modules, the version from
// the cloned module will overwrite the original.
// conflicts arise. This means that if two global variables, functions,
// or constants have the same name in both the original and cloned modules,
// the version from the cloned module will overwrite the original.
if (Linker::linkModules(M, std::move(Cloned),
Linker::Flags::OverrideFromSrc)) {
llvm::report_fatal_error("Error linking the modules");
Expand Down

0 comments on commit 9d19ee9

Please sign in to comment.