[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 14:13:04 PDT 2025
================
@@ -345,27 +345,25 @@ void llvm::filterDeadComdatFunctions(
std::string llvm::getUniqueModuleId(Module *M) {
MD5 Md5;
- bool ExportsSymbols = false;
- auto AddGlobal = [&](GlobalValue &GV) {
- if (GV.isDeclaration() || GV.getName().starts_with("llvm.") ||
- !GV.hasExternalLinkage() || GV.hasComdat())
- return;
- ExportsSymbols = true;
- Md5.update(GV.getName());
- Md5.update(ArrayRef<uint8_t>{0});
- };
-
- for (auto &F : *M)
----------------
vitalybuka wrote:
Why this part is gone even without UniqueSourceFileNames?
https://github.com/llvm/llvm-project/pull/135728
More information about the llvm-commits
mailing list