mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +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";
|
||||
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
||||
if (!I->isExternal()) {
|
||||
Out << "extern ";
|
||||
if (I->hasInternalLinkage())
|
||||
Out << "static ";
|
||||
else
|
||||
Out << "extern ";
|
||||
printType(Out, I->getType()->getElementType(), Mang->getValueName(I));
|
||||
|
||||
if (I->hasLinkOnceLinkage())
|
||||
|
@ -858,7 +858,10 @@ bool CWriter::doInitialization(Module &M) {
|
||||
Out << "\n\n/* Global Variable Declarations */\n";
|
||||
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
||||
if (!I->isExternal()) {
|
||||
Out << "extern ";
|
||||
if (I->hasInternalLinkage())
|
||||
Out << "static ";
|
||||
else
|
||||
Out << "extern ";
|
||||
printType(Out, I->getType()->getElementType(), Mang->getValueName(I));
|
||||
|
||||
if (I->hasLinkOnceLinkage())
|
||||
|
Loading…
x
Reference in New Issue
Block a user