1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Global variables are now external if they don't have initializers, not

"uninitialized"

llvm-svn: 4052
This commit is contained in:
Chris Lattner 2002-10-06 22:48:09 +00:00
parent d8244f43d4
commit 4e19009255

View File

@ -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());