mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
clang-format. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8aab70ebfe
commit
e8d9f7b5d1
@ -477,17 +477,28 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) {
|
|||||||
|
|
||||||
static unsigned getEncodedLinkage(const GlobalValue &GV) {
|
static unsigned getEncodedLinkage(const GlobalValue &GV) {
|
||||||
switch (GV.getLinkage()) {
|
switch (GV.getLinkage()) {
|
||||||
case GlobalValue::ExternalLinkage: return 0;
|
case GlobalValue::ExternalLinkage:
|
||||||
case GlobalValue::WeakAnyLinkage: return 1;
|
return 0;
|
||||||
case GlobalValue::AppendingLinkage: return 2;
|
case GlobalValue::WeakAnyLinkage:
|
||||||
case GlobalValue::InternalLinkage: return 3;
|
return 1;
|
||||||
case GlobalValue::LinkOnceAnyLinkage: return 4;
|
case GlobalValue::AppendingLinkage:
|
||||||
case GlobalValue::ExternalWeakLinkage: return 7;
|
return 2;
|
||||||
case GlobalValue::CommonLinkage: return 8;
|
case GlobalValue::InternalLinkage:
|
||||||
case GlobalValue::PrivateLinkage: return 9;
|
return 3;
|
||||||
case GlobalValue::WeakODRLinkage: return 10;
|
case GlobalValue::LinkOnceAnyLinkage:
|
||||||
case GlobalValue::LinkOnceODRLinkage: return 11;
|
return 4;
|
||||||
case GlobalValue::AvailableExternallyLinkage: return 12;
|
case GlobalValue::ExternalWeakLinkage:
|
||||||
|
return 7;
|
||||||
|
case GlobalValue::CommonLinkage:
|
||||||
|
return 8;
|
||||||
|
case GlobalValue::PrivateLinkage:
|
||||||
|
return 9;
|
||||||
|
case GlobalValue::WeakODRLinkage:
|
||||||
|
return 10;
|
||||||
|
case GlobalValue::LinkOnceODRLinkage:
|
||||||
|
return 11;
|
||||||
|
case GlobalValue::AvailableExternallyLinkage:
|
||||||
|
return 12;
|
||||||
}
|
}
|
||||||
llvm_unreachable("Invalid linkage");
|
llvm_unreachable("Invalid linkage");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user