X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2FLinker%2FLinkModules.cpp;h=8968377663e74a8c762e5cea05ee9609b6ffe03f;hb=e272b971caee419cb602eca63f32d9fca28695d3;hp=88b019a6f92a1d2a0140bf3769167b69851f8b77;hpb=649084b00b5bb85507168f6a7939ef2bad3a1fd5;p=oota-llvm.git 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