mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Decode opaque types in the runtime demangler.
This commit is contained in:
@@ -359,6 +359,12 @@ llvm::Constant *IRGenModule::getAddrOfStringForTypeRef(
|
||||
}
|
||||
// \1 - direct reference, \2 - indirect reference
|
||||
baseKind = 1;
|
||||
} else if (auto copaque = symbolic.first.dyn_cast<const OpaqueTypeDecl*>()){
|
||||
auto opaque = const_cast<OpaqueTypeDecl*>(copaque);
|
||||
IRGen.noteUseOfOpaqueTypeDescriptor(opaque);
|
||||
ref = getAddrOfLLVMVariableOrGOTEquivalent(
|
||||
LinkEntity::forOpaqueTypeDescriptor(opaque));
|
||||
baseKind = 1;
|
||||
} else {
|
||||
llvm_unreachable("unhandled symbolic referent");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user