mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 17:42:40 +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…
x
Reference in New Issue
Block a user