forked from OSchip/llvm-project
Fix bug: CBackend/2003-06-28-LinkOnceGlobalVars.llx
llvm-svn: 6931
This commit is contained in:
parent
de025f3220
commit
90921a7eee
|
@ -682,6 +682,8 @@ void CWriter::printModule(Module *M) {
|
|||
if (I->hasInternalLinkage())
|
||||
Out << "static ";
|
||||
printType(Out, I->getType()->getElementType(), getValueName(I));
|
||||
if (I->hasLinkOnceLinkage())
|
||||
Out << " __attribute__((common))";
|
||||
if (!I->getInitializer()->isNullValue()) {
|
||||
Out << " = " ;
|
||||
writeOperand(I->getInitializer());
|
||||
|
|
Loading…
Reference in New Issue