projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e20c814
)
Clarify some important bits
author
Anton Korobeynikov
<asl@math.spbu.ru>
Fri, 7 Mar 2008 18:34:50 +0000
(18:34 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Fri, 7 Mar 2008 18:34:50 +0000
(18:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48010
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index eed36c16744b59c460ba8268b8e16c5a8cf83b60..5545af69f16fc80e9c9f012b54c8f1d78e112741 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-516,8
+516,9
@@
static bool LinkGlobals(Module *Dest, Module *Src,
SGV->isConstant(), SGV->getLinkage(), /*init*/0,
"", Dest);
- //
Propagate alignment, section and visibility info
.
+ //
Set alignment allowing CopyGVAttributes merge it with alignment of SGV
.
NewDGV->setAlignment(DGV->getAlignment());
+ // Propagate alignment, section and visibility info.
CopyGVAttributes(NewDGV, SGV);
// Make sure to remember this mapping...