================
@@ -299,9 +272,7 @@ void BackendConsumer::HandleTranslationUnit(ASTContext &C) {
   for (auto &F : getModule()->functions()) {
     if (const Decl *FD = Gen->GetDeclForMangledName(F.getName())) {
       auto Loc = FD->getASTContext().getFullLoc(FD->getLocation());
-      // TODO: use a fast content hash when available.
-      auto NameHash = llvm::hash_value(F.getName());
-      ManglingFullSourceLocs.push_back(std::make_pair(NameHash, Loc));
+      DiagConsumer.addFunctionSourceLocation(F.getName(), Loc);
----------------
andykaylor wrote:

We don't call this on the CIR path. Should we?

https://github.com/llvm/llvm-project/pull/225966
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to