ΒΆstd::string getUniqueModuleId(llvm::Module* M)

Description

Produce a unique identifier for this module by taking the MD5 sum of the names of the module's strong external symbols that are not comdat members. This identifier is normally guaranteed to be unique, or the program would fail to link due to multiply defined symbols. If the module has no strong external symbols (such a module may still have a semantic effect if it performs global initialization), we cannot produce a unique identifier for this module, so we return the empty string.

Declared at: llvm/include/llvm/Transforms/Utils/ModuleUtils.h:110

Parameters

llvm::Module* M