llvm_cbuilder: global string should use LINKONCE_ODR
This commit is contained in:
parent
ee62b0c96c
commit
a0a777e1aa
1 changed files with 1 additions and 0 deletions
|
|
@ -494,6 +494,7 @@ class CBuilder(object):
|
||||||
# new constant string
|
# new constant string
|
||||||
globalstr = mod.add_global_variable(content.type, name=name)
|
globalstr = mod.add_global_variable(content.type, name=name)
|
||||||
globalstr.initializer = content
|
globalstr.initializer = content
|
||||||
|
globalstr.linkage = lc.LINKAGE_LINKONCE_ODR
|
||||||
globalstr.global_constant = True
|
globalstr.global_constant = True
|
||||||
else:
|
else:
|
||||||
# compare existing content
|
# compare existing content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue