[llvm] [ThinLTO] Don't mark calloc function dead (PR #72673)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 08:58:00 PST 2023


teresajohnson wrote:

> It isn't lld that is doing the handling that preserves these symbols, it is LTO, specifically llvm/lib/Object/IRSymtab.cpp. See the use of RuntimeLibcalls.def here and where it is used to preserve symbols later in the file.

(invoked from LTO.cpp via readIRSymtab, and the flags are later checked when adding symbols in addModuleToGlobalRes)


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


More information about the llvm-commits mailing list