aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-06 22:48:09 +0000
committerChris Lattner <sabre@nondot.org>2002-10-06 22:48:09 +0000
commit0c5e36211801f14d02d7fec1393bed450b68c79f (patch)
tree58dc4e5699a1e0953bf6d2303057b3a3aab39eda /lib/VMCore
parent61b91bc156bb9e3d9017a9e93d567f8dccfa3f68 (diff)
downloadexternal_llvm-0c5e36211801f14d02d7fec1393bed450b68c79f.zip
external_llvm-0c5e36211801f14d02d7fec1393bed450b68c79f.tar.gz
external_llvm-0c5e36211801f14d02d7fec1393bed450b68c79f.tar.bz2
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 8c7b06b..f43fda9 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -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());