projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d5633e
)
Add CommonLinkage, in a way that preserves the
author
Dale Johannesen
<dalej@apple.com>
Fri, 16 May 2008 22:46:40 +0000
(22:46 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Fri, 16 May 2008 22:46:40 +0000
(22:46 +0000)
behavior on old .bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51210
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/lto2/LTOModule.cpp
patch
|
blob
|
history
diff --git
a/tools/lto2/LTOModule.cpp
b/tools/lto2/LTOModule.cpp
index cc3b1f142dc02351675003216c0e1f8edab639ce..2fd29be272a609aa7619def6109871df78495945 100644
(file)
--- a/
tools/lto2/LTOModule.cpp
+++ b/
tools/lto2/LTOModule.cpp
@@
-203,6
+203,9
@@
void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler,
attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
}
}
+ else if ( def->hasCommonLinkage()) {
+ attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
+ }
else {
attr |= LTO_SYMBOL_DEFINITION_REGULAR;
}