[llvm-commits] [llvm] r128501 - /llvm/trunk/lib/Linker/LinkModules.cpp
Bill Wendling
isanbard at gmail.com
Tue Mar 29 16:05:41 PDT 2011
Author: void
Date: Tue Mar 29 18:05:41 2011
New Revision: 128501
URL: http://llvm.org/viewvc/llvm-project?rev=128501&view=rev
Log:
We need to copy over the unnamed_addr attribute.
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=128501&r1=128500&r2=128501&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Mar 29 18:05:41 2011
@@ -352,6 +352,7 @@
unsigned Alignment = std::max(DestGV->getAlignment(), SrcGV->getAlignment());
DestGV->copyAttributesFrom(SrcGV);
DestGV->setAlignment(Alignment);
+ DestGV->setUnnamedAddr(SrcGV->hasUnnamedAddr());
}
/// GetLinkageResult - This analyzes the two global values and determines what
More information about the llvm-commits
mailing list