mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
DebugInfo: Remove DIType
This is the last major parent class, so I'll probably start deleting classes in batches now. Looks like many of the references to the DI* hierarchy were updated organically along the way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -141,7 +141,7 @@ bool DbgVariable::isBlockByrefVariable() const {
|
||||
->isBlockByrefStruct();
|
||||
}
|
||||
|
||||
DIType DbgVariable::getType() const {
|
||||
const MDType *DbgVariable::getType() const {
|
||||
MDType *Ty = Var->getType().resolve(DD->getTypeIdentifierMap());
|
||||
// FIXME: isBlockByrefVariable should be reformulated in terms of complex
|
||||
// addresses instead.
|
||||
@ -459,17 +459,15 @@ void DwarfDebug::beginModule() {
|
||||
CU.getOrCreateGlobalVariableDIE(GV);
|
||||
for (auto *SP : CUNode->getSubprograms())
|
||||
SPMap.insert(std::make_pair(SP, &CU));
|
||||
for (DIType Ty : CUNode->getEnumTypes()) {
|
||||
for (auto *Ty : CUNode->getEnumTypes()) {
|
||||
// The enum types array by design contains pointers to
|
||||
// MDNodes rather than DIRefs. Unique them here.
|
||||
DIType UniqueTy = cast<MDType>(resolve(Ty->getRef()));
|
||||
CU.getOrCreateTypeDIE(UniqueTy);
|
||||
CU.getOrCreateTypeDIE(cast<MDType>(resolve(Ty->getRef())));
|
||||
}
|
||||
for (DIType Ty : CUNode->getRetainedTypes()) {
|
||||
for (auto *Ty : CUNode->getRetainedTypes()) {
|
||||
// The retained types array by design contains pointers to
|
||||
// MDNodes rather than DIRefs. Unique them here.
|
||||
DIType UniqueTy = cast<MDType>(resolve(Ty->getRef()));
|
||||
CU.getOrCreateTypeDIE(UniqueTy);
|
||||
CU.getOrCreateTypeDIE(cast<MDType>(resolve(Ty->getRef())));
|
||||
}
|
||||
// Emit imported_modules last so that the relevant context is already
|
||||
// available.
|
||||
|
Reference in New Issue
Block a user