projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LTO: expose LTO_SYMBOL_COMDAT flag, which indicates that the definition is part of...
[oota-llvm.git]
/
lib
/
LTO
/
LTOModule.cpp
diff --git
a/lib/LTO/LTOModule.cpp
b/lib/LTO/LTOModule.cpp
index 5cdbca66a80e54fc2a522cc62221f636994e0293..0794d3c9ea4ae4ffd81fee5ba320d805f9780c48 100644
(file)
--- a/
lib/LTO/LTOModule.cpp
+++ b/
lib/LTO/LTOModule.cpp
@@
-468,6
+468,9
@@
void LTOModule::addDefinedSymbol(const char *Name, const GlobalValue *def,
else
attr |= LTO_SYMBOL_SCOPE_DEFAULT;
+ if (def->hasComdat())
+ attr |= LTO_SYMBOL_COMDAT;
+
auto Iter = _defines.insert(Name).first;
// fill information structure