mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Global variables are now external if they don't have initializers, not
"uninitialized" llvm-svn: 4052
This commit is contained in:
parent
d8244f43d4
commit
4e19009255
@ -541,7 +541,7 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
|||||||
if (GV->hasName()) Out << "%" << GV->getName() << " = ";
|
if (GV->hasName()) Out << "%" << GV->getName() << " = ";
|
||||||
|
|
||||||
if (GV->hasInternalLinkage()) Out << "internal ";
|
if (GV->hasInternalLinkage()) Out << "internal ";
|
||||||
if (!GV->hasInitializer()) Out << "uninitialized ";
|
if (!GV->hasInitializer()) Out << "external ";
|
||||||
|
|
||||||
Out << (GV->isConstant() ? "constant " : "global ");
|
Out << (GV->isConstant() ? "constant " : "global ");
|
||||||
printType(GV->getType()->getElementType());
|
printType(GV->getType()->getElementType());
|
||||||
|
Loading…
Reference in New Issue
Block a user