mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Global variables are now external if they don't have initializers, not
"uninitialized" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61b91bc156
commit
0c5e362118
@ -541,7 +541,7 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
||||
if (GV->hasName()) Out << "%" << GV->getName() << " = ";
|
||||
|
||||
if (GV->hasInternalLinkage()) Out << "internal ";
|
||||
if (!GV->hasInitializer()) Out << "uninitialized ";
|
||||
if (!GV->hasInitializer()) Out << "external ";
|
||||
|
||||
Out << (GV->isConstant() ? "constant " : "global ");
|
||||
printType(GV->getType()->getElementType());
|
||||
|
Loading…
Reference in New Issue
Block a user