[patch] Don't rename in Module::getOrInsertFunction.

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Mar 10 12:08:11 PDT 2014

On Mar 10, 2014, at 12:01 PM, Pete Cooper <peter_cooper at apple.com> wrote:

> Also possible to hit this on LTO with static C functions.  That is, 
> static int foo()
> is this in the IR when its a C file.  Linking 2 of these IR files together needs to ensure we don’t clash on names.
> define internal i32 @foo() nounwind ssp uwtable

I think ModuleLinker::run() (in LinkModules.cpp) handles this case
another way.  It doesn’t rely on Module::getOrInsertFunction().

More information about the llvm-commits mailing list