[llvm-branch-commits] [llvm-branch] r134470 - /llvm/branches/type-system-rewrite/lib/VMCore/Globals.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 5 23:05:50 PDT 2011
Author: lattner
Date: Wed Jul 6 01:05:50 2011
New Revision: 134470
URL: http://llvm.org/viewvc/llvm-project?rev=134470&view=rev
Log:
enhance copyAttributesFrom to handle the unnamedaddr bit.
Modified:
llvm/branches/type-system-rewrite/lib/VMCore/Globals.cpp
Modified: llvm/branches/type-system-rewrite/lib/VMCore/Globals.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/lib/VMCore/Globals.cpp?rev=134470&r1=134469&r2=134470&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/VMCore/Globals.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/VMCore/Globals.cpp Wed Jul 6 01:05:50 2011
@@ -51,6 +51,7 @@
setAlignment(Src->getAlignment());
setSection(Src->getSection());
setVisibility(Src->getVisibility());
+ setUnnamedAddr(Src->hasUnnamedAddr());
}
void GlobalValue::setAlignment(unsigned Align) {
More information about the llvm-branch-commits
mailing list