mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
DI: Remove dead code: getDICompositeType()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,21 +56,6 @@ DISubprogram *llvm::getDISubprogram(const Function *F) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DICompositeTypeBase *llvm::getDICompositeType(DIType *T) {
|
||||
if (auto *C = dyn_cast_or_null<DICompositeTypeBase>(T))
|
||||
return C;
|
||||
|
||||
if (auto *D = dyn_cast_or_null<DIDerivedType>(T)) {
|
||||
// This function is currently used by dragonegg and dragonegg does
|
||||
// not generate identifier for types, so using an empty map to resolve
|
||||
// DerivedFrom should be fine.
|
||||
DITypeIdentifierMap EmptyMap;
|
||||
return getDICompositeType(D->getBaseType().resolve(EmptyMap));
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DITypeIdentifierMap
|
||||
llvm::generateDITypeIdentifierMap(const NamedMDNode *CU_Nodes) {
|
||||
DITypeIdentifierMap Map;
|
||||
|
Reference in New Issue
Block a user