From: Teresa Johnson Date: Tue, 10 Nov 2015 18:26:31 +0000 (+0000) Subject: [ThinLTO] Update comment per change in WeakAny handling (NFC) X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e272b971caee419cb602eca63f32d9fca28695d3 [ThinLTO] Update comment per change in WeakAny handling (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252627 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 88b019a6f92..8968377663e 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -655,7 +655,9 @@ bool ModuleLinker::doImportAsDefinition(const GlobalValue *SGV) { return false; return doImportAsDefinition(GA->getBaseObject()); } - // Always import GlobalVariable definitions. The linkage changes + // Always import GlobalVariable definitions, except for the special + // case of WeakAny which are imported as ExternalWeak declarations + // (see comments in ModuleLinker::getLinkage). The linkage changes // described in ModuleLinker::getLinkage ensure the correct behavior (e.g. // global variables with external linkage are transformed to // available_externally definitions, which are ultimately turned into