mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
Fix test/Regression/CodeGen/CBackend/2004-12-03-ExternStatics.ll and
PR472 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8430182d80
commit
cc16a8e73b
@ -858,7 +858,10 @@ bool CWriter::doInitialization(Module &M) {
|
|||||||
Out << "\n\n/* Global Variable Declarations */\n";
|
Out << "\n\n/* Global Variable Declarations */\n";
|
||||||
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
||||||
if (!I->isExternal()) {
|
if (!I->isExternal()) {
|
||||||
Out << "extern ";
|
if (I->hasInternalLinkage())
|
||||||
|
Out << "static ";
|
||||||
|
else
|
||||||
|
Out << "extern ";
|
||||||
printType(Out, I->getType()->getElementType(), Mang->getValueName(I));
|
printType(Out, I->getType()->getElementType(), Mang->getValueName(I));
|
||||||
|
|
||||||
if (I->hasLinkOnceLinkage())
|
if (I->hasLinkOnceLinkage())
|
||||||
|
@ -858,7 +858,10 @@ bool CWriter::doInitialization(Module &M) {
|
|||||||
Out << "\n\n/* Global Variable Declarations */\n";
|
Out << "\n\n/* Global Variable Declarations */\n";
|
||||||
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
||||||
if (!I->isExternal()) {
|
if (!I->isExternal()) {
|
||||||
Out << "extern ";
|
if (I->hasInternalLinkage())
|
||||||
|
Out << "static ";
|
||||||
|
else
|
||||||
|
Out << "extern ";
|
||||||
printType(Out, I->getType()->getElementType(), Mang->getValueName(I));
|
printType(Out, I->getType()->getElementType(), Mang->getValueName(I));
|
||||||
|
|
||||||
if (I->hasLinkOnceLinkage())
|
if (I->hasLinkOnceLinkage())
|
||||||
|
Loading…
Reference in New Issue
Block a user