Misc documentation/comment fixes.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 4 Feb 2015 00:42:45 +0000 (00:42 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 4 Feb 2015 00:42:45 +0000 (00:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228093 91177308-0d34-0410-b5e6-96231b3b80d8

docs/BitCodeFormat.rst
docs/LangRef.rst
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp

index fc553f79174aa2fe7d777032ef6de9a3df225c75..4b398a4e956b251b04281b6c2eb977e0c442aaa8 100644 (file)
@@ -672,7 +672,7 @@ for each library name referenced.
 MODULE_CODE_GLOBALVAR Record
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-``[GLOBALVAR, pointer type, isconst, initid, linkage, alignment, section, visibility, threadlocal, unnamed_addr, dllstorageclass]``
+``[GLOBALVAR, pointer type, isconst, initid, linkage, alignment, section, visibility, threadlocal, unnamed_addr, externally_initialized, dllstorageclass, comdat]``
 
 The ``GLOBALVAR`` record (code 7) marks the declaration or definition of a
 global variable. The operand fields are:
index b18474915e189c7b26be313a1254c5181c6796fb..f086fbe3e0b7da24471348a6ea2633000f0e3be2 100644 (file)
@@ -588,7 +588,7 @@ iteration. The maximum alignment is ``1 << 29``.
 
 Globals can also have a :ref:`DLL storage class <dllstorageclass>`.
 
-Variables and aliasaes can have a
+Variables and aliases can have a
 :ref:`Thread Local Storage Model <tls_model>`.
 
 Syntax::
index b4831d921cf911c0c52d3383b71fd2e5ce3cc176..f64cd55d8f3b85b27f3e8fa027ece1535071a52e 100644 (file)
@@ -2196,7 +2196,8 @@ std::error_code BitcodeReader::ParseModule(bool Resume) {
     }
     // GLOBALVAR: [pointer type, isconst, initid,
     //             linkage, alignment, section, visibility, threadlocal,
-    //             unnamed_addr, dllstorageclass]
+    //             unnamed_addr, externally_initialized, dllstorageclass,
+    //             comdat]
     case bitc::MODULE_CODE_GLOBALVAR: {
       if (Record.size() < 6)
         return Error("Invalid record");
index 3aa1ef9a707b4004e19a92a37efe252fc4763452..5b502bce2bcca60216534d4a1c87422c7f0b71cc 100644 (file)
@@ -654,7 +654,8 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
 
     // GLOBALVAR: [type, isconst, initid,
     //             linkage, alignment, section, visibility, threadlocal,
-    //             unnamed_addr, externally_initialized, dllstorageclass]
+    //             unnamed_addr, externally_initialized, dllstorageclass,
+    //             comdat]
     Vals.push_back(VE.getTypeID(GV.getType()));
     Vals.push_back(GV.isConstant());
     Vals.push_back(GV.isDeclaration() ? 0 :