mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Misc documentation/comment fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228093 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -672,7 +672,7 @@ for each library name referenced.
|
|||||||
MODULE_CODE_GLOBALVAR Record
|
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
|
The ``GLOBALVAR`` record (code 7) marks the declaration or definition of a
|
||||||
global variable. The operand fields are:
|
global variable. The operand fields are:
|
||||||
|
@@ -588,7 +588,7 @@ iteration. The maximum alignment is ``1 << 29``.
|
|||||||
|
|
||||||
Globals can also have a :ref:`DLL storage class <dllstorageclass>`.
|
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>`.
|
:ref:`Thread Local Storage Model <tls_model>`.
|
||||||
|
|
||||||
Syntax::
|
Syntax::
|
||||||
|
@@ -2196,7 +2196,8 @@ std::error_code BitcodeReader::ParseModule(bool Resume) {
|
|||||||
}
|
}
|
||||||
// GLOBALVAR: [pointer type, isconst, initid,
|
// GLOBALVAR: [pointer type, isconst, initid,
|
||||||
// linkage, alignment, section, visibility, threadlocal,
|
// linkage, alignment, section, visibility, threadlocal,
|
||||||
// unnamed_addr, dllstorageclass]
|
// unnamed_addr, externally_initialized, dllstorageclass,
|
||||||
|
// comdat]
|
||||||
case bitc::MODULE_CODE_GLOBALVAR: {
|
case bitc::MODULE_CODE_GLOBALVAR: {
|
||||||
if (Record.size() < 6)
|
if (Record.size() < 6)
|
||||||
return Error("Invalid record");
|
return Error("Invalid record");
|
||||||
|
@@ -654,7 +654,8 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
|
|||||||
|
|
||||||
// GLOBALVAR: [type, isconst, initid,
|
// GLOBALVAR: [type, isconst, initid,
|
||||||
// linkage, alignment, section, visibility, threadlocal,
|
// 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(VE.getTypeID(GV.getType()));
|
||||||
Vals.push_back(GV.isConstant());
|
Vals.push_back(GV.isConstant());
|
||||||
Vals.push_back(GV.isDeclaration() ? 0 :
|
Vals.push_back(GV.isDeclaration() ? 0 :
|
||||||
|
Reference in New Issue
Block a user