mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
minor clarity changes, no functionality difference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3aef571287
commit
ce5e04e710
@ -1901,8 +1901,7 @@ void BytecodeReader::ParseModuleGlobalInfo() {
|
|||||||
error("Invalid type (type type) for global var!");
|
error("Invalid type (type type) for global var!");
|
||||||
unsigned LinkageID = (VarType >> 2) & 7;
|
unsigned LinkageID = (VarType >> 2) & 7;
|
||||||
bool isConstant = VarType & 1;
|
bool isConstant = VarType & 1;
|
||||||
bool hasInitializer = VarType & 2;
|
bool hasInitializer = (VarType & 2) != 0;
|
||||||
GlobalValue::LinkageTypes Linkage;
|
|
||||||
unsigned Alignment = 0;
|
unsigned Alignment = 0;
|
||||||
|
|
||||||
// An extension word is present when linkage = 3 (internal) and hasinit = 0.
|
// An extension word is present when linkage = 3 (internal) and hasinit = 0.
|
||||||
@ -1915,6 +1914,7 @@ void BytecodeReader::ParseModuleGlobalInfo() {
|
|||||||
Alignment = (1 << ((ExtWord >> 4) & 31)) >> 1;
|
Alignment = (1 << ((ExtWord >> 4) & 31)) >> 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GlobalValue::LinkageTypes Linkage;
|
||||||
switch (LinkageID) {
|
switch (LinkageID) {
|
||||||
case 0: Linkage = GlobalValue::ExternalLinkage; break;
|
case 0: Linkage = GlobalValue::ExternalLinkage; break;
|
||||||
case 1: Linkage = GlobalValue::WeakLinkage; break;
|
case 1: Linkage = GlobalValue::WeakLinkage; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user