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
|
||||
globalstr = mod.add_global_variable(content.type, name=name)
|
||||
globalstr.initializer = content
|
||||
globalstr.linkage = lc.LINKAGE_LINKONCE_ODR
|
||||
globalstr.global_constant = True
|
||||
else:
|
||||
# compare existing content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue