[llvm] [NFC][ModuleUtils] Move externalize() from module splitting utilities (PR #221181)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 03:58:10 PDT 2026


================
@@ -381,6 +381,18 @@ std::string llvm::getUniqueModuleId(Module *M) {
   return ("." + Str).str();
 }
 
+void llvm::externalizeGlobal(GlobalValue &GV) {
----------------
mmjjpp wrote:

I understand and agree with your feedback. I've opened a revised PR in #223654, and I would really appreciate it if you could take a review.

The two functions are now members of GlobalValue. Accordingly, externalizeGlobal() has been renamed to externalize(), and nameUnnamedGlobalValue() has been renamed to nameUnnamed().

I will ping you on the new PR as well. Thanks!

https://github.com/llvm/llvm-project/pull/221181


More information about the llvm-commits mailing list