mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Keep track of DIType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -955,9 +955,7 @@ void DebugInfoFinder::processModule(Module &M) {
|
||||
|
||||
/// processType - Process DIType.
|
||||
void DebugInfoFinder::processType(DIType DT) {
|
||||
if (DT.isNull())
|
||||
return;
|
||||
if (!NodesSeen.insert(DT.getGV()))
|
||||
if (!addType(DT))
|
||||
return;
|
||||
|
||||
addCompileUnit(DT.getCompileUnit());
|
||||
@ -1028,6 +1026,18 @@ void DebugInfoFinder::processDeclare(DbgDeclareInst *DDI) {
|
||||
processType(DV.getType());
|
||||
}
|
||||
|
||||
/// addType - Add type into Tys.
|
||||
bool DebugInfoFinder::addType(DIType DT) {
|
||||
if (DT.isNull())
|
||||
return false;
|
||||
|
||||
if (!NodesSeen.insert(DT.getGV()))
|
||||
return false;
|
||||
|
||||
TYs.push_back(DT.getGV());
|
||||
return true;
|
||||
}
|
||||
|
||||
/// addCompileUnit - Add compile unit into CUs.
|
||||
bool DebugInfoFinder::addCompileUnit(DICompileUnit CU) {
|
||||
if (CU.isNull())
|
||||
|
Reference in New Issue
Block a user