mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +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) {
|
||||
switch (GV.getLinkage()) {
|
||||
case GlobalValue::ExternalLinkage: return 0;
|
||||
case GlobalValue::WeakAnyLinkage: return 1;
|
||||
case GlobalValue::AppendingLinkage: return 2;
|
||||
case GlobalValue::InternalLinkage: return 3;
|
||||
case GlobalValue::LinkOnceAnyLinkage: return 4;
|
||||
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;
|
||||
case GlobalValue::ExternalLinkage:
|
||||
return 0;
|
||||
case GlobalValue::WeakAnyLinkage:
|
||||
return 1;
|
||||
case GlobalValue::AppendingLinkage:
|
||||
return 2;
|
||||
case GlobalValue::InternalLinkage:
|
||||
return 3;
|
||||
case GlobalValue::LinkOnceAnyLinkage:
|
||||
return 4;
|
||||
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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user